#[repr(u8)]pub enum VfsFileType {
RegularFile = 1,
Directory = 2,
Symlink = 3,
BlockDevice = 4,
CharDevice = 5,
Fifo = 6,
Socket = 7,
Unknown = 0,
}Expand description
File type enumeration.
Maps to both Unix mode bits and Windows file attributes.
Variants§
RegularFile = 1
Regular file
Directory = 2
Directory
Symlink = 3
Symbolic link
BlockDevice = 4
Block device
CharDevice = 5
Character device
Fifo = 6
Named pipe (FIFO)
Socket = 7
Unix domain socket
Unknown = 0
Unknown or unsupported type
Implementations§
Source§impl VfsFileType
impl VfsFileType
Sourcepub const fn to_mode_bits(self) -> u32
pub const fn to_mode_bits(self) -> u32
Convert to Unix mode bits (S_IFMT field).
Sourcepub const fn is_symlink(self) -> bool
pub const fn is_symlink(self) -> bool
Check if this is a symbolic link.
Trait Implementations§
Source§impl Clone for VfsFileType
impl Clone for VfsFileType
Source§fn clone(&self) -> VfsFileType
fn clone(&self) -> VfsFileType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VfsFileType
impl Debug for VfsFileType
Source§impl Hash for VfsFileType
impl Hash for VfsFileType
Source§impl PartialEq for VfsFileType
impl PartialEq for VfsFileType
impl Copy for VfsFileType
impl Eq for VfsFileType
impl StructuralPartialEq for VfsFileType
Auto Trait Implementations§
impl Freeze for VfsFileType
impl RefUnwindSafe for VfsFileType
impl Send for VfsFileType
impl Sync for VfsFileType
impl Unpin for VfsFileType
impl UnsafeUnpin for VfsFileType
impl UnwindSafe for VfsFileType
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