#[non_exhaustive]#[repr(i32)]pub enum FileType {
Unknown = 0,
RegularFile = 1,
Directory = 2,
CharDevice = 3,
BlockDevice = 4,
Fifo = 5,
Socket = 6,
Symlink = 7,
}Expand description
File type for directory entries (maps to EXT2_FT_* constants).
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.
Unknown = 0
Unknown or unspecified file type.
RegularFile = 1
Regular file.
Directory = 2
Directory.
CharDevice = 3
Character device.
BlockDevice = 4
Block device.
Fifo = 5
Named pipe (FIFO).
Socket = 6
Unix domain socket.
Symlink = 7
Symbolic link.
Trait Implementations§
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 UnsafeUnpin 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