struct DiskStat {
sectors_read: u64,
sectors_written: u64,
}Expand description
Disk IO stat information from /proc/diskstats file.
To fully understand these fields, please see the iostats.txt kernel documentation.
This type only contains the value sysinfo is interested into.
The fields of this file are:
- major number
- minor number
- device name
- reads completed successfully
- reads merged
- sectors read
- time spent reading (ms)
- writes completed
- writes merged
- sectors written
- time spent writing (ms)
- I/Os currently in progress
- time spent doing I/Os (ms)
- weighted time spent doing I/Os (ms)
Doc reference: https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
Doc reference: https://www.kernel.org/doc/Documentation/iostats.txt
Fields§
§sectors_read: u64§sectors_written: u64Implementations§
Trait Implementations§
impl StructuralPartialEq for DiskStat
Auto Trait Implementations§
impl Freeze for DiskStat
impl RefUnwindSafe for DiskStat
impl Send for DiskStat
impl Sync for DiskStat
impl Unpin for DiskStat
impl UnwindSafe for DiskStat
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