#[non_exhaustive]pub enum NodeAddr {
Path(Vec<Vec<u8>>),
File(FileId),
Both {
path: Vec<Vec<u8>>,
id: FileId,
},
}Expand description
How a node is addressed within a filesystem.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Path(Vec<Vec<u8>>)
Raw path components — filesystem names are bytes, not guaranteed UTF-8.
File(FileId)
The filesystem-specific stable id (survives a reallocated slot).
Both
Both: resolve by id, keep the observed path for context.
Trait Implementations§
impl Eq for NodeAddr
impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
impl Freeze for NodeAddr
impl RefUnwindSafe for NodeAddr
impl Send for NodeAddr
impl Sync for NodeAddr
impl Unpin for NodeAddr
impl UnsafeUnpin for NodeAddr
impl UnwindSafe for NodeAddr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more