(&self, path: &str)
| 1381 | } |
| 1382 | |
| 1383 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1384 | use crate::crdt::tables::{decode_trunk_id, PATH_TRUNK}; |
| 1385 | let table = crdt_table_opt!(self, PATH_TRUNK); |
| 1386 | let result = table.get(path)?; |
| 1387 | match result { |
| 1388 | Some(guard) => { |
| 1389 | let key: [u8; 12] = *guard.value(); |
| 1390 | drop(guard); |
| 1391 | Ok(Some(decode_trunk_id(&key))) |
| 1392 | } |
| 1393 | None => Ok(None), |
| 1394 | } |
| 1395 | } |
| 1396 | |
| 1397 | fn iter_trunk_branches( |
| 1398 | &self, |
nothing calls this directly
no test coverage detected