pub struct MountStat {
pub device: Option<String>,
pub mount_point: PathBuf,
pub fs: String,
pub statistics: Option<MountNFSStatistics>,
}
Expand description
Mount information from /proc/<pid>/mountstats
.
Example:
let stats = Process::myself().unwrap().mountstats().unwrap();
for mount in stats {
println!("{} mounted on {} wth type {}",
mount.device.unwrap_or("??".to_owned()),
mount.mount_point.display(),
mount.fs
);
}
Fields
device: Option<String>
The name of the mounted device
mount_point: PathBuf
The mountpoint within the filesystem tree
fs: String
The filesystem type
statistics: Option<MountNFSStatistics>
If the mount is NFS, this will contain various NFS statistics
Implementations
sourceimpl MountStat
impl MountStat
pub fn from_reader<R: Read>(r: R) -> ProcResult<Vec<MountStat>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MountStat
impl Send for MountStat
impl Sync for MountStat
impl Unpin for MountStat
impl UnwindSafe for MountStat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more