pub struct CpuMetricsV2 {
pub logical_cores: u32,
pub usage_pct: f32,
pub iowait_pct: Option<f32>,
}Expand description
CPU utilization snapshot for schema version 2.
Identical to v1 CpuMetrics but placed in the v2 module for
independent evolution.
Fields§
§logical_cores: u32Number of logical CPU cores available to the kernel.
usage_pct: f32Total CPU busy percentage, 0.0..=100.0.
iowait_pct: Option<f32>Aggregate CPU I/O-wait percentage, 0.0..=100.0. None when
MetricCapabilitiesV2::cpu_iowait is false.
Trait Implementations§
Source§impl Clone for CpuMetricsV2
impl Clone for CpuMetricsV2
Source§fn clone(&self) -> CpuMetricsV2
fn clone(&self) -> CpuMetricsV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CpuMetricsV2
Source§impl Debug for CpuMetricsV2
impl Debug for CpuMetricsV2
Source§impl<'de> Deserialize<'de> for CpuMetricsV2
impl<'de> Deserialize<'de> for CpuMetricsV2
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
Source§impl PartialEq for CpuMetricsV2
impl PartialEq for CpuMetricsV2
Source§impl Serialize for CpuMetricsV2
impl Serialize for CpuMetricsV2
impl StructuralPartialEq for CpuMetricsV2
Auto Trait Implementations§
impl Freeze for CpuMetricsV2
impl RefUnwindSafe for CpuMetricsV2
impl Send for CpuMetricsV2
impl Sync for CpuMetricsV2
impl Unpin for CpuMetricsV2
impl UnsafeUnpin for CpuMetricsV2
impl UnwindSafe for CpuMetricsV2
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