pub struct ProcessInfo {
pub pid: i32,
pub comm: String,
pub cmdline: String,
pub stat: Stat,
pub euid: u32,
pub ruid: u32,
pub rgid: u32,
}Expand description
Per-process snapshot built up while walking /proc. Carries the
fields filters operate on (PID, comm/cmdline, real/effective UID
and GID), plus the underlying procfs::process::Stat for tools
that need additional fields like start time or process group.
Fields§
§pid: i32§comm: String§cmdline: String§stat: Stat§euid: u32§ruid: u32§rgid: u32Implementations§
Source§impl ProcessInfo
impl ProcessInfo
Sourcepub fn match_text(&self, full: bool) -> &str
pub fn match_text(&self, full: bool) -> &str
Returns the text the regex pattern should be matched against —
the full command line if full is true (corresponds to -f),
otherwise the comm field.
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