pub enum Item<'p> {
RegularInline {
nlink: u32,
content: Cow<'p, [u8]>,
},
Regular {
size: u64,
nlink: u32,
path: Cow<'p, Path>,
fsverity_digest: Option<String>,
},
Device {
nlink: u32,
rdev: u64,
},
Symlink {
nlink: u32,
target: Cow<'p, Path>,
},
Hardlink {
target: Cow<'p, Path>,
},
Fifo {
nlink: u32,
},
Directory {
size: u64,
nlink: u32,
},
}Expand description
A serializable composefs entry.
The Display implementation for this type is defined to serialize
into a format consumable by mkcomposefs --from-file.
Variants§
RegularInline
A regular, inlined file
Regular
A regular external file
Fields
Device
A character or block device node
Symlink
A symbolic link
Hardlink
A hardlink entry
Fifo
FIFO
Directory
A directory
Implementations§
Trait Implementations§
impl<'p> Eq for Item<'p>
impl<'p> StructuralPartialEq for Item<'p>
Auto Trait Implementations§
impl<'p> Freeze for Item<'p>
impl<'p> RefUnwindSafe for Item<'p>
impl<'p> Send for Item<'p>
impl<'p> Sync for Item<'p>
impl<'p> Unpin for Item<'p>
impl<'p> UnwindSafe for Item<'p>
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