pub struct ProcessInfo {Show 13 fields
pub pid: u32,
pub parent_pid: Option<u32>,
pub name: String,
pub command: String,
pub user: String,
pub state: String,
pub cpu_percent: f32,
pub memory_bytes: u64,
pub threads: Option<u32>,
pub read_bytes_per_sec: f64,
pub write_bytes_per_sec: f64,
pub run_time_secs: u64,
pub kernel_thread: bool,
}Expand description
One process.
Fields§
§pid: u32Process id.
parent_pid: Option<u32>Parent process id.
name: StringShort name (executable name).
command: StringFull command line joined by spaces.
user: StringOwner user name (or numeric uid when it cannot be resolved).
state: StringScheduling state (e.g. “Run”, “Sleep”, “Zombie”).
cpu_percent: f32CPU usage; 100 means one full core, so multi-threaded processes may exceed 100.
memory_bytes: u64Resident memory.
threads: Option<u32>Number of threads, where known.
read_bytes_per_sec: f64Disk read throughput.
write_bytes_per_sec: f64Disk write throughput.
run_time_secs: u64Seconds since the process started.
kernel_thread: boolKernel thread (e.g. kworker), which front-ends may hide.
Trait Implementations§
Source§impl Clone for ProcessInfo
impl Clone for ProcessInfo
Source§impl Debug for ProcessInfo
impl Debug for ProcessInfo
Source§impl Default for ProcessInfo
impl Default for ProcessInfo
Source§impl<'de> Deserialize<'de> for ProcessInfowhere
ProcessInfo: Default,
impl<'de> Deserialize<'de> for ProcessInfowhere
ProcessInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProcessInfo
impl RefUnwindSafe for ProcessInfo
impl Send for ProcessInfo
impl Sync for ProcessInfo
impl Unpin for ProcessInfo
impl UnsafeUnpin 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