(&self, path: &str)
| 1207 | } |
| 1208 | |
| 1209 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1210 | use crate::crdt::tables::{decode_trunk_id, PATH_TRUNK}; |
| 1211 | let table = crdt_table_opt!(self, PATH_TRUNK); |
| 1212 | let result = table.get(path)?; |
| 1213 | match result { |
| 1214 | Some(guard) => { |
| 1215 | let key: [u8; 12] = *guard.value(); |
| 1216 | drop(guard); |
| 1217 | Ok(Some(decode_trunk_id(&key))) |
| 1218 | } |
| 1219 | None => Ok(None), |
| 1220 | } |
| 1221 | } |
| 1222 | |
| 1223 | fn iter_trunk_branches( |
| 1224 | &self, |
nothing calls this directly
no test coverage detected