Enum tar::EntryType[][src]

pub enum EntryType {
Show 13 variants Regular, Link, Symlink, Char, Block, Directory, Fifo, Continuous, GNULongName, GNULongLink, GNUSparse, XGlobalHeader, XHeader, // some variants omitted
}
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

Regular

Regular file

Hard link

Symbolic link

Char

Character device

Block

Block device

Directory

Directory

Fifo

Named pipe (fifo)

Continuous

Implementation-defined ‘high-performance’ type, treated as regular file

GNULongName

GNU extension - long file name

GNU extension - long link name (link target)

GNUSparse

GNU extension - sparse file

XGlobalHeader

Global extended header

XHeader

Extended Header

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.

Returns the raw underlying byte that this entry type represents.

Creates a new entry type representing a regular file.

Creates a new entry type representing a hard link.

Creates a new entry type representing a symlink.

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 directory.

Creates a new entry type representing a FIFO.

Creates a new entry type representing a contiguous file.

Returns whether this type represents a regular 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 directory.

Returns whether this type represents a FIFO.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.