Enum rustix::fs::FileType
pub enum FileType {
RegularFile,
Directory,
Symlink,
Fifo,
Socket,
CharacterDevice,
BlockDevice,
Unknown,
}Variants
RegularFileS_IFREG
DirectoryS_IFDIR
SymlinkS_IFLNK
FifoS_IFIFO
SocketS_IFSOCK
CharacterDeviceS_IFCHR
BlockDeviceS_IFBLK
UnknownAn unknown filesystem object.
Implementations
impl FileType
pub const fn from_raw_mode(st_mode: RawMode) -> Self
Construct a FileType from the S_IFMT bits of the st_mode field of
a Stat.
pub const fn as_raw_mode(Self) -> RawMode
Construct an st_mode value from Stat.
Trait Implementations
impl Debug for FileType
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl StructuralEq for FileTypeimpl StructuralPartialEq for FileTypeAuto Trait Implementations
impl RefUnwindSafe for FileTypeimpl UnwindSafe for FileTypeBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T