[−][src]Enum pathrs::InodeType
An inode type to be created with Root::create
.
Variants
File(&'a Permissions)
Ordinary file, as in creat(2)
.
Directory(&'a Permissions)
Directory, as in mkdir(2)
.
Symlink(&'a Path)
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(&'a Path)
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(&'a Permissions)
Named pipe (aka FIFO), as in mkfifo(3)
.
CharacterDevice(&'a Permissions, dev_t)
Character device, as in mknod(2)
with S_IFCHR
.
BlockDevice(&'a Permissions, dev_t)
Block device, as in mknod(2)
with S_IFBLK
.
Trait Implementations
impl<'a> Clone for InodeType<'a>
[src]
impl<'a> Copy for InodeType<'a>
[src]
impl<'a> Debug for InodeType<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for InodeType<'a>
impl<'a> Send for InodeType<'a>
impl<'a> Sync for InodeType<'a>
impl<'a> Unpin for InodeType<'a>
impl<'a> UnwindSafe for InodeType<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,