pub struct ProcessInfo {
pub pid: u32,
pub cpu_count: u32,
pub percent_cpu: f64,
pub percent_cpu_user: f64,
pub percent_cpu_system: f64,
pub percent_mem: f64,
pub percent_cpu_process: f64,
pub percent_mem_process: f64,
pub mem_total: u64,
pub mem_free: u64,
}
Fields§
§pid: u32
current pid
cpu_count: u32
Current host CPU quantity
percent_cpu: f64
totoal cpu usage
percent_cpu_user: f64
§percent_cpu_system: f64
§percent_mem: f64
totoal memory usage
percent_cpu_process: f64
§percent_mem_process: f64
§mem_total: u64
§mem_free: u64
Auto Trait Implementations§
impl Freeze for ProcessInfo
impl RefUnwindSafe for ProcessInfo
impl Send for ProcessInfo
impl Sync for ProcessInfo
impl Unpin for ProcessInfo
impl UnwindSafe for ProcessInfo
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