#[repr(C)]pub enum FileType {
File = 0,
Directory = 1,
BlockDevice = 2,
CharDevice = 3,
}
Expand description
Describes the sort of files you will find in the system-wide virtual filesystem. Some exist on disk, and some do not.
Variants§
File = 0
A regular file
Directory = 1
A directory contains other files and directories
BlockDevice = 2
A device you can read/write a block (e.g. 512 bytes) at a time
CharDevice = 3
A device you can read/write one or more bytes at a time
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