[][src]Enum pathrs::InodeType

pub enum InodeType<'a> {
    File(&'a Permissions),
    Directory(&'a Permissions),
    Symlink(&'a Path),
    Hardlink(&'a Path),
    Fifo(&'a Permissions),
    CharacterDevice(&'a Permissionsdev_t),
    BlockDevice(&'a Permissionsdev_t),
}

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 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.

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 Permissionsdev_t)

Character device, as in mknod(2) with S_IFCHR.

BlockDevice(&'a Permissionsdev_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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.