#[repr(C)]pub struct sg_cpu_stats {Show 14 fields
pub user: c_ulonglong,
pub kernel: c_ulonglong,
pub idle: c_ulonglong,
pub iowait: c_ulonglong,
pub swap: c_ulonglong,
pub nice: c_ulonglong,
pub total: c_ulonglong,
pub context_switches: c_ulonglong,
pub voluntary_context_switches: c_ulonglong,
pub involuntary_context_switches: c_ulonglong,
pub syscalls: c_ulonglong,
pub interrupts: c_ulonglong,
pub soft_interrupts: c_ulonglong,
pub systime: time_t,
}Fields§
§user: c_ulonglong§kernel: c_ulonglong§idle: c_ulonglong§iowait: c_ulonglong§swap: c_ulonglong§nice: c_ulonglong§total: c_ulonglong§context_switches: c_ulonglong§voluntary_context_switches: c_ulonglong§involuntary_context_switches: c_ulonglong§syscalls: c_ulonglong§interrupts: c_ulonglong§soft_interrupts: c_ulonglong§systime: time_tTrait Implementations§
Source§impl Clone for sg_cpu_stats
impl Clone for sg_cpu_stats
Source§fn clone(&self) -> sg_cpu_stats
fn clone(&self) -> sg_cpu_stats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for sg_cpu_stats
impl Debug for sg_cpu_stats
impl Copy for sg_cpu_stats
Auto Trait Implementations§
impl Freeze for sg_cpu_stats
impl RefUnwindSafe for sg_cpu_stats
impl Send for sg_cpu_stats
impl Sync for sg_cpu_stats
impl Unpin for sg_cpu_stats
impl UnwindSafe for sg_cpu_stats
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