Enum unix_mode::Type [−][src]
#[non_exhaustive]
pub enum Type {
File,
Dir,
Symlink,
Socket,
Fifo,
BlockDevice,
CharDevice,
Whiteout,
Unknown,
}
Expand description
The different types of files known to this library
Can be constructed From<u32>
.
assert_eq!(unix_mode::Type::from(0o0100640), unix_mode::Type::File);
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.
A plain file.
A directory.
A symbolic link.
A Unix-domain socket.
A named pipe / FIFO.
A block device, such as a disk.
A character device, such as a /dev/null
.
A removed file in union filesystems.
File type not recognized by this version of this library
More types might be added in the future, so the semantics of this variant may change.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more