(&self, path: &str)
| 1806 | } |
| 1807 | |
| 1808 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1809 | use crate::crdt::tables::{decode_trunk_id, PATH_TRUNK}; |
| 1810 | let table = crdt_table_opt!(self, PATH_TRUNK); |
| 1811 | let result = table.get(path)?; |
| 1812 | match result { |
| 1813 | Some(guard) => { |
| 1814 | let key: [u8; 12] = *guard.value(); |
| 1815 | drop(guard); |
| 1816 | Ok(Some(decode_trunk_id(&key))) |
| 1817 | } |
| 1818 | None => Ok(None), |
| 1819 | } |
| 1820 | } |
| 1821 | |
| 1822 | fn iter_trunk_branches( |
| 1823 | &self, |
nothing calls this directly
no test coverage detected