pub struct SystemMetricsSnapshot {
pub cpu_usage_percent: f64,
pub memory_total_bytes: u64,
pub memory_used_bytes: u64,
pub memory_usage_percent: f64,
pub swap_total_bytes: u64,
pub swap_used_bytes: u64,
}Expand description
Snapshot of system metrics.
Fields§
§cpu_usage_percent: f64CPU usage percentage (0-100).
memory_total_bytes: u64Total memory in bytes.
memory_used_bytes: u64Used memory in bytes.
memory_usage_percent: f64Memory usage percentage (0-100).
swap_total_bytes: u64Total swap in bytes.
swap_used_bytes: u64Used swap in bytes.
Trait Implementations§
Source§impl Clone for SystemMetricsSnapshot
impl Clone for SystemMetricsSnapshot
Source§fn clone(&self) -> SystemMetricsSnapshot
fn clone(&self) -> SystemMetricsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SystemMetricsSnapshot
impl RefUnwindSafe for SystemMetricsSnapshot
impl Send for SystemMetricsSnapshot
impl Sync for SystemMetricsSnapshot
impl Unpin for SystemMetricsSnapshot
impl UnwindSafe for SystemMetricsSnapshot
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
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