Enum axfs_vfs::VfsNodeType 
source · #[repr(u8)]pub enum VfsNodeType {
    Fifo,
    CharDevice,
    Dir,
    BlockDevice,
    File,
    SymLink,
    Socket,
}Expand description
Node (file/directory) type.
Variants§
Fifo
FIFO (named pipe)
CharDevice
Character device
Dir
Directory
BlockDevice
Block device
File
Regular file
SymLink
Symbolic link
Socket
Socket
Implementations§
source§impl VfsNodeType
 
impl VfsNodeType
sourcepub const fn is_symlink(self) -> bool
 
pub const fn is_symlink(self) -> bool
Tests whether this node type represents a symbolic link.
sourcepub const fn is_block_device(self) -> bool
 
pub const fn is_block_device(self) -> bool
Returns true if this node type is a block device.
sourcepub const fn is_char_device(self) -> bool
 
pub const fn is_char_device(self) -> bool
Returns true if this node type is a char device.
Trait Implementations§
source§impl Clone for VfsNodeType
 
impl Clone for VfsNodeType
source§fn clone(&self) -> VfsNodeType
 
fn clone(&self) -> VfsNodeType
Returns a copy 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 VfsNodeType
 
impl Debug for VfsNodeType
source§impl PartialEq<VfsNodeType> for VfsNodeType
 
impl PartialEq<VfsNodeType> for VfsNodeType
source§fn eq(&self, other: &VfsNodeType) -> bool
 
fn eq(&self, other: &VfsNodeType) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Copy for VfsNodeType
impl Eq for VfsNodeType
impl StructuralEq for VfsNodeType
impl StructuralPartialEq for VfsNodeType
Auto Trait Implementations§
impl RefUnwindSafe for VfsNodeType
impl Send for VfsNodeType
impl Sync for VfsNodeType
impl Unpin for VfsNodeType
impl UnwindSafe for VfsNodeType
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