(&self, path: &str)
| 1832 | } |
| 1833 | |
| 1834 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1835 | use crate::crdt::tables::{decode_trunk_id, PATH_TRUNK}; |
| 1836 | let table = crdt_table_opt!(self, PATH_TRUNK); |
| 1837 | let result = table.get(path)?; |
| 1838 | match result { |
| 1839 | Some(guard) => { |
| 1840 | let key: [u8; 12] = *guard.value(); |
| 1841 | drop(guard); |
| 1842 | Ok(Some(decode_trunk_id(&key))) |
| 1843 | } |
| 1844 | None => Ok(None), |
| 1845 | } |
| 1846 | } |
| 1847 | |
| 1848 | fn iter_trunk_branches( |
| 1849 | &self, |
nothing calls this directly
no test coverage detected