Struct libstatgrab_sys::sg_cpu_stats
source · #[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_t
Trait 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 copy 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 more