#[non_exhaustive]pub enum InodeKind<'a> {
Directory(Dir<'a>),
Symlink(Symlink<'a>),
File(File<'a>),
Device(Device<'a>),
Ipc(Ipc<'a>),
}Expand description
An inode, classified by its kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Directory(Dir<'a>)
A directory inode.
Symlink(Symlink<'a>)
A symlink inode.
File(File<'a>)
A regular file inode.
Device(Device<'a>)
A block or character device inode.
Ipc(Ipc<'a>)
A pipe or socket inode.
Trait Implementations§
impl<'a> Copy for InodeKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for InodeKind<'a>
impl<'a> RefUnwindSafe for InodeKind<'a>
impl<'a> Send for InodeKind<'a>
impl<'a> Sync for InodeKind<'a>
impl<'a> Unpin for InodeKind<'a>
impl<'a> UnwindSafe for InodeKind<'a>
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