Struct nuts_directory::Id
source · pub struct Id(/* private fields */);Expand description
The id of the backend.
This id as an 16 byte random number.
When storing a block to disks the path to the file is derived from the id:
- The id is converted into a hex string.
- The path then would be:
<first two chars>/<next two chars>/<remaining chars>
Trait Implementations§
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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