pub struct CpuUsage {
pub percent: Option<f64>,
pub interval: Duration,
pub cpu_time: Duration,
pub total_cpu_time: Duration,
}Expand description
One CPU-usage reading produced by CpuUsageSampler::sample.
Fields§
§percent: Option<f64>Percent of one core consumed since the previous sample. None for the first sample.
interval: DurationWall-clock time covered by this sample.
cpu_time: DurationCPU time consumed during interval.
total_cpu_time: DurationTotal CPU time charged to the process so far.
Trait Implementations§
impl Copy for CpuUsage
impl StructuralPartialEq for CpuUsage
Auto Trait Implementations§
impl Forget for CpuUsage
impl Freeze for CpuUsage
impl Move 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