pub struct DiskCounters {
pub name: String,
pub reads: u64,
pub read_sectors: u64,
pub writes: u64,
pub write_sectors: u64,
pub io_ticks: u64,
}Expand description
One device’s cumulative counters from /proc/diskstats.
Fields§
§name: String§reads: u64Reads completed.
read_sectors: u64Sectors read. A sector here is 512 bytes whatever the device’s.
writes: u64Writes completed.
write_sectors: u64Sectors written.
io_ticks: u64Milliseconds the device had I/O in flight.
Trait Implementations§
Source§impl Clone for DiskCounters
impl Clone for DiskCounters
Source§impl Debug for DiskCounters
impl Debug for DiskCounters
impl Eq for DiskCounters
Source§impl PartialEq for DiskCounters
impl PartialEq for DiskCounters
impl StructuralPartialEq for DiskCounters
Auto Trait Implementations§
impl Forget for DiskCounters
impl Freeze for DiskCounters
impl Move for DiskCounters
impl RefUnwindSafe for DiskCounters
impl Send for DiskCounterswhere
RawVecInner: Send,
impl Sync for DiskCounterswhere
RawVecInner: Sync,
impl Unpin for DiskCounters
impl UnsafeUnpin for DiskCounters
impl UnwindSafe for DiskCounterswhere
RawVecInner: UnwindSafe,
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