pub struct ProcessStats {Show 21 fields
pub process_name: String,
pub proctitle: String,
pub pid: i32,
pub parent: i32,
pub pgid: i32,
pub sessid: i32,
pub uid: u32,
pub euid: u32,
pub gid: u32,
pub egid: u32,
pub context_switches: u64,
pub voluntary_context_switches: u64,
pub involuntary_context_switches: u64,
pub proc_size: u64,
pub proc_resident: u64,
pub start_time: Duration,
pub time_spent: Duration,
pub cpu_percent: f64,
pub nice: i32,
pub state: ProcessState,
pub systime: Duration,
}Fields§
§process_name: String§proctitle: String§pid: i32§parent: i32§pgid: i32§sessid: i32§uid: u32§euid: u32§gid: u32§egid: u32§context_switches: u64§voluntary_context_switches: u64§involuntary_context_switches: u64§proc_size: u64§proc_resident: u64§start_time: Duration§time_spent: Duration§cpu_percent: f64§nice: i32§state: ProcessState§systime: DurationTrait Implementations§
Source§impl Clone for ProcessStats
impl Clone for ProcessStats
Source§fn clone(&self) -> ProcessStats
fn clone(&self) -> ProcessStats
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 moreAuto Trait Implementations§
impl Freeze for ProcessStats
impl RefUnwindSafe for ProcessStats
impl Send for ProcessStats
impl Sync for ProcessStats
impl Unpin for ProcessStats
impl UnwindSafe for ProcessStats
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