pub struct CpuUsage {
pub busy: Percent,
pub breakdown: MetricState<CpuBreakdown>,
}Expand description
Aggregate or per-core CPU utilization.
Fields§
§busy: PercentNon-idle time as a share of elapsed time, in 0..=100.
breakdown: MetricState<CpuBreakdown>The /proc/stat-style split, where the platform exposes it.
Implementations§
Trait Implementations§
impl Copy for CpuUsage
impl StructuralPartialEq for CpuUsage
Auto Trait Implementations§
impl Freeze for CpuUsage
impl RefUnwindSafe for CpuUsage
impl Send for CpuUsage
impl Sync for CpuUsage
impl Unpin for CpuUsage
impl UnsafeUnpin for CpuUsage
impl UnwindSafe for CpuUsage
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