pub enum CpuState {
Off = 0,
Waiting = 1,
Measuring = 2,
Unavailable = 3,
}Expand description
What the CPU side of Activity knows. Stored as a u8.
Variants§
Off = 0
Not sampled: amont.idleCpuCredit false, no silence budget, or a
platform that cannot measure. The silence-only rule applies.
Waiting = 1
Sampling, but nothing measured yet (the check has not been quiet long enough, or it has only a baseline).
Measuring = 2
Consecutive complete snapshots are being compared.
The last snapshot was incomplete; the next complete one re-baselines.
Trait Implementations§
impl Copy for CpuState
impl Eq for CpuState
impl StructuralPartialEq for CpuState
Auto Trait Implementations§
impl Freeze for CpuState
impl RefUnwindSafe for CpuState
impl Send for CpuState
impl Sync for CpuState
impl Unpin for CpuState
impl UnsafeUnpin for CpuState
impl UnwindSafe for CpuState
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