pub enum FileType {
BlockDevice,
CharacterDevice,
Directory,
Fifo,
File,
SymbolicLink,
Socket,
}Expand description
The type of an entry.
In an mtree file, entries can be files, directories, and some other special unix types like block/character devices.
Variants§
BlockDevice
A unix block device.
CharacterDevice
A unix character device.
Directory
A directory.
Fifo
A unix fifo (named pipe), useful for IPC.
File
A standard file.
SymbolicLink
A symbolic link.
Socket
A unix socket.
Trait Implementations§
Source§impl Ord for FileType
impl Ord for FileType
Source§impl PartialOrd for FileType
impl PartialOrd for FileType
impl Copy for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
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