Skip to main content

ProcView

Trait ProcView 

Source
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§

Source

fn parent(&self, pid: u32) -> Option<u32>

The parent of pid; None when the process does not exist.

Source

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§

Source§

impl ProcView for SystemProcs

Available on Linux only.