Struct linux_info::storage::MountPoint [−][src]
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]
&self
) -> impl Iterator<Item = (&'a str, Option<&'a str>)>
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]
fn clone(&self) -> MountPoint<'a>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Debug for MountPoint<'a>[src]
impl<'a> Eq for MountPoint<'a>[src]
impl<'a> PartialEq<MountPoint<'a>> for MountPoint<'a>[src]
fn eq(&self, other: &MountPoint<'a>) -> bool[src]
fn ne(&self, other: &MountPoint<'a>) -> bool[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]
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,
pub 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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,