pub struct SystemSnapshot {
pub system_cpu_percent: f64,
pub process_cpu_percent: f64,
pub system_memory_mb: u64,
pub process_memory_mb: u64,
pub load_average: f64,
pub thread_count: u32,
pub fd_count: u32,
pub health_score: f64,
pub last_update: Duration,
}
Expand description
System resource usage snapshot
Fields§
§system_cpu_percent: f64
System CPU usage percentage (0.0-100.0)
process_cpu_percent: f64
Process CPU usage percentage (0.0-100.0)
system_memory_mb: u64
System memory usage in MB
process_memory_mb: u64
Process memory usage in MB
load_average: f64
System load average (1 minute)
thread_count: u32
Number of process threads
fd_count: u32
Number of file descriptors
health_score: f64
Overall health score (0.0-100.0)
last_update: Duration
Time since last update
Trait Implementations§
Source§impl Clone for SystemSnapshot
impl Clone for SystemSnapshot
Source§fn clone(&self) -> SystemSnapshot
fn clone(&self) -> SystemSnapshot
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 SystemSnapshot
impl RefUnwindSafe for SystemSnapshot
impl Send for SystemSnapshot
impl Sync for SystemSnapshot
impl Unpin for SystemSnapshot
impl UnwindSafe for SystemSnapshot
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