pub struct ProcRow {
pub pid: i32,
pub start_time: u64,
pub ppid: Option<i32>,
pub ancestor_chain: Vec<i32>,
pub user: Arc<str>,
pub status: ProcessStatus,
pub cpu_usage_tenths: u32,
pub memory_bytes: u64,
pub name: String,
pub cmd: String,
}Expand description
A single process row rendered in the process table.
Fields§
§pid: i32Process identifier.
start_time: u64Process start time as reported by sysinfo, used to disambiguate pid reuse.
ppid: Option<i32>Parent process identifier when available.
ancestor_chain: Vec<i32>Ancestor pid chain from immediate parent upward.
user: Arc<str>Resolved user name or fallback identifier.
status: ProcessStatusProcess status from sysinfo.
cpu_usage_tenths: u32CPU usage in tenths of a percent, used for hidden sort ordering.
memory_bytes: u64Resident memory usage in bytes, used for hidden sort ordering.
name: StringShort process name.
cmd: StringFull command line, when available.
Trait Implementations§
impl Eq for ProcRow
impl StructuralPartialEq for ProcRow
Auto Trait Implementations§
impl Freeze for ProcRow
impl RefUnwindSafe for ProcRow
impl Send for ProcRow
impl Sync for ProcRow
impl Unpin for ProcRow
impl UnsafeUnpin for ProcRow
impl UnwindSafe for ProcRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more