pub struct NFSByteCounter {
pub normal_read: u64,
pub normal_write: u64,
pub direct_read: u64,
pub direct_write: u64,
pub server_read: u64,
pub server_write: u64,
pub pages_read: u64,
pub pages_write: u64,
}
Expand description
Represents NFS data from /proc/<pid>/mountstats
under the section bytes
.
The underlying data structure in the kernel can be found under fs/nfs/iostat.h nfs_iostat
.
The fields are documented in the kernel source only under include/linux/nfs_iostat.h enum nfs_stat_bytecounters
Fields§
§normal_read: u64
§normal_write: u64
§direct_read: u64
§direct_write: u64
§server_read: u64
§server_write: u64
§pages_read: u64
§pages_write: u64
Trait Implementations§
source§impl Clone for NFSByteCounter
impl Clone for NFSByteCounter
source§fn clone(&self) -> NFSByteCounter
fn clone(&self) -> NFSByteCounter
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 NFSByteCounter
impl Debug for NFSByteCounter
source§impl<'de> Deserialize<'de> for NFSByteCounter
impl<'de> Deserialize<'de> for NFSByteCounter
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
source§impl Serialize for NFSByteCounter
impl Serialize for NFSByteCounter
impl Copy for NFSByteCounter
Auto Trait Implementations§
impl Freeze for NFSByteCounter
impl RefUnwindSafe for NFSByteCounter
impl Send for NFSByteCounter
impl Sync for NFSByteCounter
impl Unpin for NFSByteCounter
impl UnwindSafe for NFSByteCounter
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
)