Struct get_sys_info::data::CpuTime
source · [−]pub struct CpuTime {
pub user: usize,
pub nice: usize,
pub system: usize,
pub interrupt: usize,
pub idle: usize,
pub other: usize,
}Fields
user: usizenice: usizesystem: usizeinterrupt: usizeidle: usizeother: usizeImplementations
sourceimpl CpuTime
impl CpuTime
pub fn to_cpuload(&self) -> CPULoad
Trait Implementations
sourceimpl From<sysctl_cpu> for CpuTime
impl From<sysctl_cpu> for CpuTime
sourcefn from(cpu: sysctl_cpu) -> CpuTime
fn from(cpu: sysctl_cpu) -> CpuTime
Converts to this type from the input type.
impl Copy for CpuTime
Auto Trait Implementations
impl RefUnwindSafe for CpuTime
impl Send for CpuTime
impl Sync for CpuTime
impl Unpin for CpuTime
impl UnwindSafe for CpuTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more