pub struct SystemStats {
pub cpu: f32,
pub cpus: Vec<f32>,
pub memory_total: u64,
pub memory_available: u64,
pub swap_total: u64,
pub swap_free: u64,
pub temperatures: Vec<Temperature>,
}Expand description
The system’s load, from cx.system_stats(period).
Fields§
§cpu: f32The share of time every CPU was busy over the last period, from 0 to 1; 0 until the second sample.
cpus: Vec<f32>Each online CPU’s share, as cpu, in CPU number order, up to 256
CPUs. A CPU that came online since the last sample shows 0.
memory_total: u64Memory in bytes.
memory_available: u64Memory a program could take without swapping, in bytes.
swap_total: u64Swap in bytes.
swap_free: u64Swap free, in bytes.
temperatures: Vec<Temperature>Each hwmon sensor’s temperature, up to 64, except those of a chip whose device sleeps. The sensors are listed at the first sample and again only once one is gone.
Trait Implementations§
Source§impl Clone for SystemStats
impl Clone for SystemStats
Source§impl Debug for SystemStats
impl Debug for SystemStats
Source§impl Default for SystemStats
impl Default for SystemStats
Source§impl PartialEq for SystemStats
impl PartialEq for SystemStats
impl StructuralPartialEq for SystemStats
Auto Trait Implementations§
impl Forget for SystemStats
impl Freeze for SystemStats
impl Move for SystemStats
impl RefUnwindSafe for SystemStats
impl Send for SystemStats
impl Sync for SystemStats
impl Unpin for SystemStats
impl UnsafeUnpin 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
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.