pub trait ProcView {
// Required methods
fn parent(&self, pid: u32) -> Option<u32>;
fn start_time(&self, pid: u32) -> Option<u64>;
}Expand description
The parts of the process table the mapping reads.
Required Methods§
Sourcefn parent(&self, pid: u32) -> Option<u32>
fn parent(&self, pid: u32) -> Option<u32>
The parent of pid; None when the process does not exist.
Sourcefn start_time(&self, pid: u32) -> Option<u64>
fn start_time(&self, pid: u32) -> Option<u64>
The process’s start time in the unit the CLI reports it (Linux: clock
ticks since boot, /proc/<pid>/stat field 22); None when unknown.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ProcView for SystemProcs
Available on Linux only.