Struct libstatgrab_sys::sg_process_stats
source · #[repr(C)]pub struct sg_process_stats {Show 21 fields
pub process_name: *mut c_char,
pub proctitle: *mut c_char,
pub pid: pid_t,
pub parent: pid_t,
pub pgid: pid_t,
pub sessid: pid_t,
pub uid: uid_t,
pub euid: uid_t,
pub gid: gid_t,
pub egid: gid_t,
pub context_switches: c_ulonglong,
pub voluntary_context_switches: c_ulonglong,
pub involuntary_context_switches: c_ulonglong,
pub proc_size: c_ulonglong,
pub proc_resident: c_ulonglong,
pub start_time: time_t,
pub time_spent: time_t,
pub cpu_percent: f64,
pub nice: c_int,
pub state: sg_process_state,
pub systime: time_t,
}
Fields§
§process_name: *mut c_char
§proctitle: *mut c_char
§pid: pid_t
§parent: pid_t
§pgid: pid_t
§sessid: pid_t
§uid: uid_t
§euid: uid_t
§gid: gid_t
§egid: gid_t
§context_switches: c_ulonglong
§voluntary_context_switches: c_ulonglong
§involuntary_context_switches: c_ulonglong
§proc_size: c_ulonglong
§proc_resident: c_ulonglong
§start_time: time_t
§time_spent: time_t
§cpu_percent: f64
§nice: c_int
§state: sg_process_state
§systime: time_t
Trait Implementations§
source§impl Clone for sg_process_stats
impl Clone for sg_process_stats
source§fn clone(&self) -> sg_process_stats
fn clone(&self) -> sg_process_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