Struct probes::disk_stats::DiskStatsMeasurement
source · pub struct DiskStatsMeasurement {
pub precise_time_ns: u64,
pub stats: DiskStats,
}
Fields§
§precise_time_ns: u64
§stats: DiskStats
Implementations§
source§impl DiskStatsMeasurement
impl DiskStatsMeasurement
sourcepub fn calculate_per_minute(
&self,
next_measurement: &DiskStatsMeasurement
) -> Result<DiskStatsPerMinute>
pub fn calculate_per_minute( &self, next_measurement: &DiskStatsMeasurement ) -> Result<DiskStatsPerMinute>
Calculate the disk stats per minute based on this measurement and a measurement in the future. It is advisable to make the next measurement roughly a minute from this one for the most reliable result.
Trait Implementations§
source§impl Debug for DiskStatsMeasurement
impl Debug for DiskStatsMeasurement
source§impl PartialEq for DiskStatsMeasurement
impl PartialEq for DiskStatsMeasurement
source§fn eq(&self, other: &DiskStatsMeasurement) -> bool
fn eq(&self, other: &DiskStatsMeasurement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiskStatsMeasurement
Auto Trait Implementations§
impl Freeze for DiskStatsMeasurement
impl RefUnwindSafe for DiskStatsMeasurement
impl Send for DiskStatsMeasurement
impl Sync for DiskStatsMeasurement
impl Unpin for DiskStatsMeasurement
impl UnwindSafe for DiskStatsMeasurement
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