Enum TarEntryType
pub enum TarEntryType {
Regular,
Directory,
Symlink,
Hardlink,
BlockDevice,
CharacterDevice,
Fifo,
GlobalExtendedHeader,
ExtendedHeader,
Unknown,
}Expand description
Tar entry type labels.
Variants§
Regular
Regular file entry.
Directory
Directory entry.
Symlink
Symbolic link entry.
Hardlink
Hard link entry.
BlockDevice
Block device entry.
CharacterDevice
Character device entry.
Fifo
FIFO entry.
GlobalExtendedHeader
Global extended header entry.
ExtendedHeader
Extended header entry.
Unknown
Unknown or unsupported tar entry type.
Implementations§
§impl TarEntryType
impl TarEntryType
pub const fn from_typeflag(typeflag: u8) -> TarEntryType
pub const fn from_typeflag(typeflag: u8) -> TarEntryType
Maps a raw tar typeflag byte to a label.
Trait Implementations§
§impl Clone for TarEntryType
impl Clone for TarEntryType
§fn clone(&self) -> TarEntryType
fn clone(&self) -> TarEntryType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TarEntryType
impl Debug for TarEntryType
§impl Default for TarEntryType
impl Default for TarEntryType
§fn default() -> TarEntryType
fn default() -> TarEntryType
Returns the “default value” for a type. Read more
§impl Display for TarEntryType
impl Display for TarEntryType
§impl Hash for TarEntryType
impl Hash for TarEntryType
§impl Ord for TarEntryType
impl Ord for TarEntryType
§impl PartialEq for TarEntryType
impl PartialEq for TarEntryType
§impl PartialOrd for TarEntryType
impl PartialOrd for TarEntryType
impl Copy for TarEntryType
impl Eq for TarEntryType
impl StructuralPartialEq for TarEntryType
Auto Trait Implementations§
impl Freeze for TarEntryType
impl RefUnwindSafe for TarEntryType
impl Send for TarEntryType
impl Sync for TarEntryType
impl Unpin for TarEntryType
impl UnsafeUnpin for TarEntryType
impl UnwindSafe for TarEntryType
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