#[non_exhaustive]pub struct Activity {
pub swap_in: Rate,
pub swap_out: Rate,
pub major_faults_per_sec: Option<f64>,
pub interval: Duration,
}Expand description
Swap and paging activity over an interval: whether the machine is thrashing.
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.swap_in: RateMemory moved from swap back into RAM.
swap_out: RateMemory moved from RAM out to swap.
major_faults_per_sec: Option<f64>Page faults that had to read from disk, per second, when reported.
interval: DurationThe time the values cover.
Trait Implementations§
impl Copy for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Forget for Activity
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
impl UnwindSafe for Activity
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