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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".