#[non_exhaustive]pub struct DiskIo {
pub read: Rate,
pub write: Rate,
pub reads_per_sec: f64,
pub writes_per_sec: f64,
pub busy: Option<Percent>,
pub average_latency: Option<Duration>,
pub interval: Duration,
}Expand description
How hard the disks worked over an interval.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.read: RateRead speed.
write: RateWrite speed.
reads_per_sec: f64Read operations per second.
writes_per_sec: f64Write operations per second.
busy: Option<Percent>The share of the interval with I/O in flight, when reported.
average_latency: Option<Duration>The time per completed operation, when reported.
interval: DurationThe time the values cover.
Trait Implementations§
impl Copy for DiskIo
impl StructuralPartialEq for DiskIo
Auto Trait Implementations§
impl Forget for DiskIo
impl Freeze for DiskIo
impl Move for DiskIo
impl RefUnwindSafe for DiskIo
impl Send for DiskIo
impl Sync for DiskIo
impl Unpin for DiskIo
impl UnsafeUnpin for DiskIo
impl UnwindSafe for DiskIo
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