pub struct DiskCounters {
pub read_bytes: u64,
pub write_bytes: u64,
}Expand description
Host-wide disk byte counters, cumulative since boot.
Fields§
§read_bytes: u64§write_bytes: u64Implementations§
Source§impl DiskCounters
impl DiskCounters
pub fn delta(&self, prev: &DiskCounters) -> DiskCounters
pub fn per_sec(&self, prev: &DiskCounters, secs: f64) -> Rate
Trait Implementations§
Source§impl Clone for DiskCounters
impl Clone for DiskCounters
impl Copy for DiskCounters
Source§impl Debug for DiskCounters
impl Debug for DiskCounters
Source§impl Default for DiskCounters
impl Default for DiskCounters
impl Eq for DiskCounters
Source§impl PartialEq for DiskCounters
impl PartialEq for DiskCounters
impl StructuralPartialEq for DiskCounters
Auto Trait Implementations§
impl Freeze for DiskCounters
impl RefUnwindSafe for DiskCounters
impl Send for DiskCounters
impl Sync for DiskCounters
impl Unpin for DiskCounters
impl UnsafeUnpin for DiskCounters
impl UnwindSafe for DiskCounters
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more