#[non_exhaustive]pub struct ProcessEntry {
pub pid: u32,
pub parent_pid: u32,
pub command_line: Option<String>,
pub working_set_bytes: Option<u64>,
}Expand description
One row of the process table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pid: u32The process id.
parent_pid: u32The parent process id as the OS reports it (0 when it has none).
command_line: Option<String>The full command line as one string. Linux and macOS join the arguments with a single
space (the original quoting is not recoverable); Windows returns the raw command line.
None when it cannot be read or is empty.
working_set_bytes: Option<u64>Resident (working set) memory in bytes. None when it cannot be read.
Trait Implementations§
Source§impl Clone for ProcessEntry
impl Clone for ProcessEntry
Source§impl Debug for ProcessEntry
impl Debug for ProcessEntry
impl Eq for ProcessEntry
Source§impl PartialEq for ProcessEntry
impl PartialEq for ProcessEntry
impl StructuralPartialEq for ProcessEntry
Auto Trait Implementations§
impl Freeze for ProcessEntry
impl RefUnwindSafe for ProcessEntry
impl Send for ProcessEntry
impl Sync for ProcessEntry
impl Unpin for ProcessEntry
impl UnsafeUnpin for ProcessEntry
impl UnwindSafe for ProcessEntry
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