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
Source§fn default() -> SystemMetrics
fn default() -> SystemMetrics
Returns the “default value” for a type. Read more
Source§impl Serialize for SystemMetrics
impl Serialize for SystemMetrics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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