pub enum TarItem<ObjectID: FsVerityHashValue> {
Directory,
Leaf(LeafContent<ObjectID>),
Hardlink(OsString),
}Expand description
Represents the content type of a tar entry.
Tar entries can be directories, regular files/symlinks/devices (leaf nodes), or hardlinks to existing files. This enum captures the different types of content that can appear in a tar archive.
Variants§
Directory
A directory entry.
Leaf(LeafContent<ObjectID>)
A leaf node (regular file, symlink, device, or fifo).
Hardlink(OsString)
A hardlink pointing to another path.
Trait Implementations§
Auto Trait Implementations§
impl<ObjectID> Freeze for TarItem<ObjectID>where
ObjectID: Freeze,
impl<ObjectID> RefUnwindSafe for TarItem<ObjectID>where
ObjectID: RefUnwindSafe,
impl<ObjectID> Send for TarItem<ObjectID>
impl<ObjectID> Sync for TarItem<ObjectID>
impl<ObjectID> Unpin for TarItem<ObjectID>
impl<ObjectID> UnwindSafe for TarItem<ObjectID>where
ObjectID: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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