#[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_tTrait 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 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_process_stats
impl Debug for sg_process_stats
impl Copy for sg_process_stats
Auto Trait Implementations§
impl Freeze for sg_process_stats
impl RefUnwindSafe for sg_process_stats
impl !Send for sg_process_stats
impl !Sync for sg_process_stats
impl Unpin for sg_process_stats
impl UnwindSafe for sg_process_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