#[repr(u8)]pub enum FileType {
Unknown = 0,
RegularFile = 1,
Directory = 2,
CharacterDevice = 3,
BlockDevice = 4,
Fifo = 5,
Socket = 6,
Symlink = 7,
}Expand description
File type enumeration for directory entries
Variants§
Unknown = 0
Unknown or invalid file type
RegularFile = 1
Regular file
Directory = 2
Directory
CharacterDevice = 3
Character device
BlockDevice = 4
Block device
Fifo = 5
FIFO (named pipe)
Socket = 6
Socket
Symlink = 7
Symbolic link
Trait Implementations§
Source§impl From<FileType> for FileTypeField
impl From<FileType> for FileTypeField
Source§impl From<FileTypeField> for FileType
impl From<FileTypeField> for FileType
Source§fn from(value: FileTypeField) -> Self
fn from(value: FileTypeField) -> Self
Converts to this type from the input type.
impl Copy 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