pub struct SysmonSample {
pub cpu: Option<CpuReading>,
pub io: Option<(String, f64)>,
pub ram: Option<(f64, f64)>,
pub rambw: Option<f64>,
pub storage: Option<(String, f64)>,
}Expand description
One completed sample window. Each field is Some exactly when its
category was enabled — a disabled category is absent, not zero.
Fields§
§cpu: Option<CpuReading>§io: Option<(String, f64)>(device, utilization) — the busiest device this window.
ram: Option<(f64, f64)>(committed, everything-including-page-cache).
rambw: Option<f64>Memory-bandwidth utilization against the configured peak.
storage: Option<(String, f64)>(mount point, space utilization) — the fullest filesystem.
Trait Implementations§
Source§impl Clone for SysmonSample
impl Clone for SysmonSample
Source§impl Debug for SysmonSample
impl Debug for SysmonSample
Source§impl Default for SysmonSample
impl Default for SysmonSample
Source§impl PartialEq for SysmonSample
impl PartialEq for SysmonSample
impl StructuralPartialEq for SysmonSample
Auto Trait Implementations§
impl Freeze for SysmonSample
impl RefUnwindSafe for SysmonSample
impl Send for SysmonSample
impl Sync for SysmonSample
impl Unpin for SysmonSample
impl UnsafeUnpin for SysmonSample
impl UnwindSafe for SysmonSample
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more