#[repr(u8)]pub enum DirEntryType {
Unknown = 0,
RegFile = 1,
Directory = 2,
CharDev = 3,
BlockDev = 4,
Fifo = 5,
Socket = 6,
Symlink = 7,
}Expand description
File-type byte in a directory entry (when FILETYPE feature is set).
Variants§
Implementations§
Source§impl DirEntryType
impl DirEntryType
Sourcepub fn from_mode(mode: u16) -> Self
pub fn from_mode(mode: u16) -> Self
The entry type for an inode of mode mode (only its S_IFMT bits
are read), per the format documentation’s file_type table. Every
writer that
names an inode maps its mode here, so an entry’s type byte cannot
disagree with its inode by a writer knowing fewer types than another
(#386). A mode that is no file type maps to Unknown.
pub fn from_u8(b: u8) -> Self
Trait Implementations§
Source§impl Clone for DirEntryType
impl Clone for DirEntryType
impl Copy for DirEntryType
Source§impl Debug for DirEntryType
impl Debug for DirEntryType
impl Eq for DirEntryType
Source§impl PartialEq for DirEntryType
impl PartialEq for DirEntryType
impl StructuralPartialEq for DirEntryType
Auto Trait Implementations§
impl Freeze for DirEntryType
impl RefUnwindSafe for DirEntryType
impl Send for DirEntryType
impl Sync for DirEntryType
impl Unpin for DirEntryType
impl UnsafeUnpin for DirEntryType
impl UnwindSafe for DirEntryType
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