Enum axfs_vfs::VfsNodeType
source · #[repr(u8)]pub enum VfsNodeType {
Fifo = 1,
CharDevice = 2,
Dir = 4,
BlockDevice = 6,
File = 8,
SymLink = 10,
Socket = 12,
}
Expand description
Node (file/directory) type.
Variants§
Fifo = 1
FIFO (named pipe)
CharDevice = 2
Character device
Dir = 4
Directory
BlockDevice = 6
Block device
File = 8
Regular file
SymLink = 10
Symbolic link
Socket = 12
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 for VfsNodeType
impl PartialEq 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