pub struct DiskIoCounters { /* private fields */ }Implementations§
Source§impl DiskIoCounters
impl DiskIoCounters
Sourcepub fn read_count(&self) -> Count
pub fn read_count(&self) -> Count
Number of reads.
Sourcepub fn write_count(&self) -> Count
pub fn write_count(&self) -> Count
Number of writes.
Sourcepub fn read_bytes(&self) -> Bytes
pub fn read_bytes(&self) -> Bytes
Number of bytes read.
Sourcepub fn write_bytes(&self) -> Bytes
pub fn write_bytes(&self) -> Bytes
Number of bytes written.
Trait Implementations§
Source§impl Add for DiskIoCounters
impl Add for DiskIoCounters
Source§type Output = DiskIoCounters
type Output = DiskIoCounters
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DiskIoCounters) -> DiskIoCounters
fn add(self, rhs: DiskIoCounters) -> DiskIoCounters
Performs the
+ operation. Read moreSource§impl Clone for DiskIoCounters
impl Clone for DiskIoCounters
Source§fn clone(&self) -> DiskIoCounters
fn clone(&self) -> DiskIoCounters
Returns a duplicate 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 DiskIoCounters
impl Debug for DiskIoCounters
Source§impl Default for DiskIoCounters
impl Default for DiskIoCounters
Source§fn default() -> DiskIoCounters
fn default() -> DiskIoCounters
Returns the “default value” for a type. Read more
Source§impl DiskIoCountersExt for DiskIoCounters
impl DiskIoCountersExt for DiskIoCounters
Source§fn write_time(&self) -> Duration
fn write_time(&self) -> Duration
Time spent writing to disk.
Source§fn read_merged_count(&self) -> Count
fn read_merged_count(&self) -> Count
Number of merged reads.
Source§fn write_merged_count(&self) -> Count
fn write_merged_count(&self) -> Count
Number of merged writes.
Source§impl FromStr for DiskIoCounters
impl FromStr for DiskIoCounters
Source§impl Sub for DiskIoCounters
impl Sub for DiskIoCounters
Source§type Output = DiskIoCounters
type Output = DiskIoCounters
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DiskIoCounters) -> DiskIoCounters
fn sub(self, rhs: DiskIoCounters) -> DiskIoCounters
Performs the
- operation. Read moreAuto Trait Implementations§
impl Freeze for DiskIoCounters
impl RefUnwindSafe for DiskIoCounters
impl Send for DiskIoCounters
impl Sync for DiskIoCounters
impl Unpin for DiskIoCounters
impl UnwindSafe for DiskIoCounters
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