#[non_exhaustive]pub enum EntryKind {
File,
Directory,
SymbolicLink {
unix_target: Option<String>,
},
CharacterDevice {
numbers: Option<DeviceNumbers>,
},
BlockDevice {
numbers: Option<DeviceNumbers>,
},
Fifo,
Socket,
VolumeLabel,
Unknown {
mode: u16,
},
}Expand description
A ZIP member’s kind, determined from its reconciled metadata.
This describes the archive entry without imposing an extraction policy. Link targets from a PKWARE UNIX extra field are nonempty UTF-8 without NUL bytes. Targets in payloads have not been validated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
File
A regular file, including entries with no explicit file type.
Directory
A directory.
SymbolicLink
A symbolic link with a target in the UNIX extra field or payload.
CharacterDevice
A character device.
Fields
§
numbers: Option<DeviceNumbers>Device numbers from the PKWARE UNIX extra field, if any.
BlockDevice
A block device.
Fields
§
numbers: Option<DeviceNumbers>Device numbers from the PKWARE UNIX extra field, if any.
Fifo
A named pipe.
Socket
A UNIX socket.
VolumeLabel
A DOS volume label.
Unknown
An unrecognized UNIX file type, masked from the mode.
Trait Implementations§
impl Eq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Forget for EntryKind
impl Freeze for EntryKind
impl Move for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKind
impl UnwindSafe for EntryKind
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