pub struct SystemStats {
pub memory: Option<MemoryStats>,
pub cpu: Option<CpuStats>,
pub load_avg: Option<[f64; 3]>,
pub uptime_seconds: Option<u64>,
}
Expand description
System statistics
Fields§
§memory: Option<MemoryStats>
Memory statistics
cpu: Option<CpuStats>
CPU statistics
load_avg: Option<[f64; 3]>
Load averages
uptime_seconds: Option<u64>
Uptime in seconds
Trait Implementations§
Source§impl Clone for SystemStats
impl Clone for SystemStats
Source§fn clone(&self) -> SystemStats
fn clone(&self) -> SystemStats
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 SystemStats
impl Debug for SystemStats
Source§impl<'de> Deserialize<'de> for SystemStats
impl<'de> Deserialize<'de> for SystemStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SystemStats
impl RefUnwindSafe for SystemStats
impl Send for SystemStats
impl Sync for SystemStats
impl Unpin for SystemStats
impl UnwindSafe for SystemStats
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