enum CpuSource {
CgroupV2,
CgroupV1,
ProcStat,
}Expand description
Which CPU accounting source is available for system-level utilization.
Variants§
CgroupV2
cgroupv2 unified hierarchy: read usage_usec from cpu.stat
CgroupV1
cgroupv1 cpuacct controller: read cpuacct.usage (nanoseconds)
ProcStat
Bare /proc/stat (host or no cgroup access)
Implementations§
Trait Implementations§
impl Copy for CpuSource
impl StructuralPartialEq for CpuSource
Auto Trait Implementations§
impl Freeze for CpuSource
impl RefUnwindSafe for CpuSource
impl Send for CpuSource
impl Sync for CpuSource
impl Unpin for CpuSource
impl UnsafeUnpin for CpuSource
impl UnwindSafe for CpuSource
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