#[non_exhaustive]pub enum InodeType {
File(Permissions),
Directory(Permissions),
Symlink(PathBuf),
Hardlink(PathBuf),
Fifo(Permissions),
CharacterDevice(Permissions, Dev),
BlockDevice(Permissions, Dev),
}Expand description
An inode type to be created with Root::create.
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.
File(Permissions)
Ordinary file, as in creat(2).
Directory(Permissions)
Directory, as in mkdir(2).
Symlink(PathBuf)
Symlink with the given path, as in symlinkat(2).
Note that symlinks can contain any arbitrary CStr-style string (it
doesn’t need to be a real pathname). We don’t do any verification of the
target name.
Hardlink(PathBuf)
Hard-link to the given path, as in linkat(2).
The provided path is resolved within the Root. It is currently
not supported to hardlink a file inside the Root’s tree to a file
outside the Root’s tree.
Fifo(Permissions)
Named pipe (aka FIFO), as in mkfifo(3).
CharacterDevice(Permissions, Dev)
Character device, as in mknod(2) with S_IFCHR.
BlockDevice(Permissions, Dev)
Block device, as in mknod(2) with S_IFBLK.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InodeType
impl RefUnwindSafe for InodeType
impl Send for InodeType
impl Sync for InodeType
impl Unpin for InodeType
impl UnwindSafe for InodeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more