pub enum FileType {
NamedPipe,
CharDevice,
BlockDevice,
Directory,
RegularFile,
Symlink,
Socket,
}
Expand description
File types
Variants
NamedPipe
Named pipe (S_IFIFO)
CharDevice
Character device (S_IFCHR)
BlockDevice
Block device (S_IFBLK)
Directory
Directory (S_IFDIR)
RegularFile
Regular file (S_IFREG)
Symlink
Symbolic link (S_IFLNK)
Socket
Unix domain socket (S_IFSOCK)
Trait Implementations
sourceimpl PartialEq<FileType> for FileType
impl PartialEq<FileType> for FileType
impl Copy for FileType
impl Eq for FileType
impl StructuralEq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more