pub struct MountEntry {
pub mount_id: u64,
pub parent_id: u64,
pub dev_major: u32,
pub dev_minor: u32,
pub root: String,
pub mount_point: String,
pub mount_options: String,
pub fs_type: String,
pub source: String,
pub super_options: String,
}Expand description
A single mount point with fields matching /proc/self/mountinfo columns.
Fields§
§mount_id: u64Unique mount ID (field 1 in mountinfo, mnt_id_old in statmount).
parent_id: u64Parent mount ID (field 2 in mountinfo, mnt_parent_id_old in statmount).
dev_major: u32Device major number (field 3 major:minor in mountinfo).
dev_minor: u32Device minor number (field 3 major:minor in mountinfo).
root: StringMount root within the filesystem (field 4 in mountinfo).
mount_point: StringMount point path (field 5 in mountinfo).
mount_options: StringPer-mount options (field 6 in mountinfo, e.g. rw,relatime).
fs_type: StringFilesystem type (after - separator in mountinfo, e.g. xfs, nfs4).
source: StringMount source device or server (after - separator, e.g. /dev/sda1).
super_options: StringSuperblock options (after - separator, e.g. rw,seclabel,attr2).
Trait Implementations§
Source§impl Clone for MountEntry
impl Clone for MountEntry
Source§fn clone(&self) -> MountEntry
fn clone(&self) -> MountEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MountEntry
impl RefUnwindSafe for MountEntry
impl Send for MountEntry
impl Sync for MountEntry
impl Unpin for MountEntry
impl UnsafeUnpin for MountEntry
impl UnwindSafe for MountEntry
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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