pub enum FileType {
Directory,
CharacterDevice,
BlockDevice,
RegularFile,
FIFO,
SymbolicLink,
Socket,
}
Expand description
Type of the file as encoded in the mode value.
Variants§
Implementations§
Source§impl FileType
impl FileType
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
Returns true if file is a directory.
Sourcepub fn is_character_device(&self) -> bool
pub fn is_character_device(&self) -> bool
Returns true if file is a character device.
Sourcepub fn is_block_device(&self) -> bool
pub fn is_block_device(&self) -> bool
Returns true if file is a block device.
Sourcepub fn is_regular_file(&self) -> bool
pub fn is_regular_file(&self) -> bool
Returns true if file is a regular file.
Sourcepub fn is_symbolic_link(&self) -> bool
pub fn is_symbolic_link(&self) -> bool
Returns true if file is a 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 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