Enum async_tar::EntryType [−][src]
#[non_exhaustive]
pub enum EntryType {
Show 14 variants
Regular,
Link,
Symlink,
Char,
Block,
Directory,
Fifo,
Continuous,
GNULongName,
GNULongLink,
GNUSparse,
XGlobalHeader,
XHeader,
Other(u8),
}
Expand description
Indicate for the type of file described by a header.
Each Header
has an entry_type
method returning an instance of this type
which can be used to inspect what the header is describing.
A non-exhaustive enum representing the possible entry types
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Regular file
Hard link
Symbolic link
Character device
Block device
Directory
Named pipe (fifo)
Implementation-defined ‘high-performance’ type, treated as regular file
GNU extension - long file name
GNU extension - long link name (link target)
GNU extension - sparse file
Global extended header
Extended Header
Unknown header,
Tuple Fields of Other
0: u8
Implementations
Creates a new entry type from a raw byte.
Note that the other named constructors of entry type may be more appropriate to create a file type from.
Creates a new entry type representing a character special device.
Creates a new entry type representing a block special device.
Creates a new entry type representing a contiguous file.
Returns whether this type represents a hard link.
Returns whether this type represents a symlink.
Returns whether this type represents a character special device.
Returns whether this type represents a block special device.
Returns whether this type represents a contiguous file.
Returns whether this type represents a GNU long name header.
Returns whether this type represents a GNU sparse header.
Returns whether this type represents a GNU long link header.
Returns whether this type represents a GNU long name header.
Returns whether this type represents a GNU long link header.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EntryType
impl UnwindSafe for EntryType
Blanket Implementations
Mutably borrows from an owned value. Read more