pub struct SystemMetrics {
pub memory_usage: u64,
pub cpu_usage: f64,
pub active_connections: u32,
pub uptime: Duration,
pub start_time: SystemTime,
pub last_update: SystemTime,
}Expand description
System-related metrics
Fields§
§memory_usage: u64§cpu_usage: f64§active_connections: u32§uptime: Duration§start_time: SystemTime§last_update: SystemTimeTrait Implementations§
Source§impl Clone for SystemMetrics
impl Clone for SystemMetrics
Source§fn clone(&self) -> SystemMetrics
fn clone(&self) -> SystemMetrics
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 moreSource§impl Debug for SystemMetrics
impl Debug for SystemMetrics
Source§impl Default for SystemMetrics
impl Default for SystemMetrics
Auto Trait Implementations§
impl Freeze for SystemMetrics
impl RefUnwindSafe for SystemMetrics
impl Send for SystemMetrics
impl Sync for SystemMetrics
impl Unpin for SystemMetrics
impl UnwindSafe for SystemMetrics
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