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: String
The 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: Duration
Duration 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: NFSPerOpStats
Implementations§
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
Auto Trait Implementations§
impl Freeze for MountNFSStatistics
impl RefUnwindSafe for MountNFSStatistics
impl Send for MountNFSStatistics
impl Sync for MountNFSStatistics
impl Unpin for MountNFSStatistics
impl UnwindSafe for MountNFSStatistics
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)