(&self, path: &str)
| 1318 | } |
| 1319 | |
| 1320 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1321 | use crate::crdt::tables::{decode_trunk_id, PATH_TRUNK}; |
| 1322 | let table = crdt_table_opt!(self, PATH_TRUNK); |
| 1323 | let result = table.get(path)?; |
| 1324 | match result { |
| 1325 | Some(guard) => { |
| 1326 | let key: [u8; 12] = *guard.value(); |
| 1327 | drop(guard); |
| 1328 | Ok(Some(decode_trunk_id(&key))) |
| 1329 | } |
| 1330 | None => Ok(None), |
| 1331 | } |
| 1332 | } |
| 1333 | |
| 1334 | fn iter_trunk_branches( |
| 1335 | &self, |
nothing calls this directly
no test coverage detected