pub enum ContentHandle {
InlineData(Vec<u8>),
SharedInline(usize),
SliceMap(Vec<SliceRef>),
Directory([u8; 32]),
Symlink(String),
Device(u64),
Pipe(u64),
}Expand description
Type-dependent content handle.
Variants§
InlineData(Vec<u8>)
Regular file with inline data.
Regular file whose inline data is in the shared inline table
(deduplicated). The index is resolved to InlineData after
the full metadata blob is parsed.
SliceMap(Vec<SliceRef>)
Regular file with a slice map.
Directory([u8; 32])
Directory: BLAKE3 hash of the root Merkle B-tree node.
Symlink(String)
Symlink: target path.
Device(u64)
Block or char device: device number.
Pipe(u64)
FIFO or socket: pipe identifier.
Trait Implementations§
Source§impl Clone for ContentHandle
impl Clone for ContentHandle
Source§fn clone(&self) -> ContentHandle
fn clone(&self) -> ContentHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentHandle
impl Debug for ContentHandle
impl Eq for ContentHandle
Source§impl PartialEq for ContentHandle
impl PartialEq for ContentHandle
impl StructuralPartialEq for ContentHandle
Auto Trait Implementations§
impl Freeze for ContentHandle
impl RefUnwindSafe for ContentHandle
impl Send for ContentHandle
impl Sync for ContentHandle
impl Unpin for ContentHandle
impl UnsafeUnpin for ContentHandle
impl UnwindSafe for ContentHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more