pub struct ProcessInfo {
pub pid: u32,
pub ppid: u32,
pub user: String,
pub cpu_percent: f32,
pub mem_percent: f32,
pub vsz: u64,
pub rss: u64,
pub stat: String,
pub start_time: String,
pub elapsed: String,
pub command: String,
}Expand description
Information about a single running process.
Parsed from one line of ps aux output.
Fields§
§pid: u32Process ID.
ppid: u32Parent Process ID (PPID) for lineage tracking.
user: StringOwning user name.
cpu_percent: f32CPU usage percentage.
mem_percent: f32Memory usage percentage.
vsz: u64Virtual memory size in bytes.
rss: u64Resident set size in bytes.
stat: StringProcess state string (e.g. "S", "R", "Z").
start_time: StringStart time of the process.
elapsed: StringElapsed running time.
command: StringFull command line.
Trait Implementations§
Source§impl Clone for ProcessInfo
impl Clone for ProcessInfo
Source§fn clone(&self) -> ProcessInfo
fn clone(&self) -> ProcessInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessInfo
impl Debug for ProcessInfo
Source§impl<'de> Deserialize<'de> for ProcessInfo
impl<'de> Deserialize<'de> for ProcessInfo
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