pub struct CpuStats {
pub logical_cores: u32,
pub usage_pct: Rolling,
pub per_core_pct: Vec<f32>,
}Expand description
Machine-wide CPU load.
Fields§
§logical_cores: u32Number of logical processors.
usage_pct: RollingTotal load as a percentage of all logical processors.
per_core_pct: Vec<f32>Load of each logical processor over the last second.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CpuStats
impl<'de> Deserialize<'de> for CpuStats
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
impl StructuralPartialEq for CpuStats
Auto Trait Implementations§
impl Forget for CpuStats
impl Freeze for CpuStats
impl Move for CpuStats
impl RefUnwindSafe for CpuStats
impl Send for CpuStats
impl Sync for CpuStats
impl Unpin for CpuStats
impl UnsafeUnpin for CpuStats
impl UnwindSafe for CpuStats
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