pub enum InputEntryKind {
File(Vec<u8>),
Source(FileSource),
Directory(Vec<InputEntry>),
Symlink(String),
CharacterDevice {
major: u32,
minor: u32,
},
BlockDevice {
major: u32,
minor: u32,
},
}Available on crate features
sync and write only.Expand description
The data represented by an InputEntry.
With the unstable-streaming feature enabled this enum gains the
Source variant, so exhaustive matches on it must account for
that variant when the feature is on.
Variants§
File(Vec<u8>)
The File variant.
Source(FileSource)
Available on crate feature
unstable-streaming only.A file whose contents are streamed from a reader while the image is written.
Requires the unstable-streaming feature and is outside the V2 API
stability promise.
Directory(Vec<InputEntry>)
The Directory variant.
Symlink(String)
The Symlink variant.
CharacterDevice
A POSIX character device.
BlockDevice
A POSIX block device.
Trait Implementations§
Source§impl Clone for InputEntryKind
impl Clone for InputEntryKind
Source§impl Debug for InputEntryKind
impl Debug for InputEntryKind
impl Eq for InputEntryKind
Source§impl PartialEq for InputEntryKind
impl PartialEq for InputEntryKind
impl StructuralPartialEq for InputEntryKind
Auto Trait Implementations§
impl !RefUnwindSafe for InputEntryKind
impl !UnwindSafe for InputEntryKind
impl Freeze for InputEntryKind
impl Send for InputEntryKind
impl Sync for InputEntryKind
impl Unpin for InputEntryKind
impl UnsafeUnpin for InputEntryKind
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