Struct linux_info::storage::MountPoint[][src]

pub struct MountPoint<'a> { /* fields omitted */ }

Implementations

impl<'a> MountPoint<'a>[src]

pub fn values(&self) -> impl Iterator<Item = &'a str>[src]

Returns every value separated by a space.

pub fn mount_id(&self) -> Option<usize>[src]

A unique ID for the mount (may be reused after umount).

pub fn parent_id(&self) -> Option<usize>[src]

The ID of the parent mount (or of self for the root of this mount namespace’s mount tree).

pub fn major_minor(&self) -> Option<&'a str>[src]

major:minor: the value of st_dev for files on this filesystem.

pub fn major(&self) -> Option<usize>[src]

Gets the major value.

pub fn minor(&self) -> Option<usize>[src]

Gets the minor value.

pub fn root(&self) -> Option<&'a str>[src]

the pathname of the directory in the filesystem which forms the root of this mount.

pub fn mount_point(&self) -> Option<&'a str>[src]

The pathname of the mount point relative to the process’s root directory.

pub fn mount_options(&self) -> Option<&'a str>[src]

Per-mount options.

pub fn optional_fields(
    &self
) -> impl Iterator<Item = (&'a str, Option<&'a str>)>
[src]

Currently, the possible optional fields are shared, master, propagate_from, and unbindable.

pub fn filesystem_type(&self) -> Option<&'a str>[src]

The filesystem type in the form “type[.subtype]”.

pub fn mount_source(&self) -> Option<&'a str>[src]

Filesystem-specific information.
df command uses this information as Filesystem.

pub fn super_options(&self) -> Option<&'a str>[src]

Per-superblock options.

pub fn stats(&self) -> Result<FsStat>[src]

Trait Implementations

impl<'a> Clone for MountPoint<'a>[src]

impl<'a> Debug for MountPoint<'a>[src]

impl<'a> Eq for MountPoint<'a>[src]

impl<'a> PartialEq<MountPoint<'a>> for MountPoint<'a>[src]

impl<'a> StructuralEq for MountPoint<'a>[src]

impl<'a> StructuralPartialEq for MountPoint<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MountPoint<'a>

impl<'a> Send for MountPoint<'a>

impl<'a> Sync for MountPoint<'a>

impl<'a> Unpin for MountPoint<'a>

impl<'a> UnwindSafe for MountPoint<'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.