(&self, path: &str)
| 1336 | } |
| 1337 | |
| 1338 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1339 | use crate::crdt::tables::{decode_trunk_id, PATH_TRUNK}; |
| 1340 | let table = crdt_table_opt!(self, PATH_TRUNK); |
| 1341 | let result = table.get(path)?; |
| 1342 | match result { |
| 1343 | Some(guard) => { |
| 1344 | let key: [u8; 12] = *guard.value(); |
| 1345 | drop(guard); |
| 1346 | Ok(Some(decode_trunk_id(&key))) |
| 1347 | } |
| 1348 | None => Ok(None), |
| 1349 | } |
| 1350 | } |
| 1351 | |
| 1352 | fn iter_trunk_branches( |
| 1353 | &self, |
nothing calls this directly
no test coverage detected