Struct procfs::process::MountNFSStatistics
source · pub struct MountNFSStatistics {
pub version: String,
pub opts: Vec<String>,
pub age: Duration,
pub caps: Vec<String>,
pub sec: Vec<String>,
pub events: NFSEventCounter,
pub bytes: NFSByteCounter,
pub per_op_stats: NFSPerOpStats,
}Expand description
Only NFS mounts provide additional statistics in MountStat entries.
Fields§
§version: StringThe version of the NFS statistics block. Either “1.0” or “1.1”.
opts: Vec<String>The mount options.
The meaning of these can be found in the manual pages for mount(5) and nfs(5)
age: DurationDuration the NFS mount has been in existence.
caps: Vec<String>NFS Capabilities.
See include/linux/nfs_fs_sb.h
Some known values:
- caps: server capabilities. See NFSServerCaps.
- wtmult: server disk block size
- dtsize: readdir size
- bsize: server block size
sec: Vec<String>§events: NFSEventCounter§bytes: NFSByteCounter§per_op_stats: NFSPerOpStatsImplementations§
source§impl MountNFSStatistics
impl MountNFSStatistics
sourcepub fn server_caps(&self) -> ProcResult<Option<NFSServerCaps>>
pub fn server_caps(&self) -> ProcResult<Option<NFSServerCaps>>
Attempts to parse the caps= value from the caps field.
Trait Implementations§
source§impl Clone for MountNFSStatistics
impl Clone for MountNFSStatistics
source§fn clone(&self) -> MountNFSStatistics
fn clone(&self) -> MountNFSStatistics
Returns a copy 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 moresource§impl Debug for MountNFSStatistics
impl Debug for MountNFSStatistics
source§impl<'de> Deserialize<'de> for MountNFSStatistics
impl<'de> Deserialize<'de> for MountNFSStatistics
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more