pub struct CpuTime {
pub user: usize,
pub nice: usize,
pub system: usize,
pub interrupt: usize,
pub idle: usize,
pub other: usize,
}
Fields§
§user: usize
§nice: usize
§system: usize
§interrupt: usize
§idle: usize
§other: usize
Implementations§
Trait Implementations§
Source§impl From<sysctl_cpu> for CpuTime
impl From<sysctl_cpu> for CpuTime
Source§fn 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 Freeze for CpuTime
impl RefUnwindSafe for CpuTime
impl Send for CpuTime
impl Sync for CpuTime
impl Unpin for CpuTime
impl UnwindSafe for CpuTime
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