Struct procfs::process::MountStat [−][src]
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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MountStat
impl UnwindSafe for MountStat
Blanket Implementations
Mutably borrows from an owned value. Read more