Skip to main content

ProcTree

Trait ProcTree 

Source
pub trait ProcTree: Send + Sync {
    // Required method
    fn parent(&self, pid: u32) -> Option<u32>;
}
Expand description

Parent-pid lookup; /proc on Linux, injectable for tests.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§