pub trait ProcessProbe: Send + Sync {
// Required methods
fn is_alive(&self, pid: u32) -> bool;
fn starttime(&self, pid: u32) -> Option<String>;
fn boot_id(&self) -> String;
fn parent_pid(&self, pid: u32) -> Option<u32>;
}Required Methods§
fn is_alive(&self, pid: u32) -> bool
fn starttime(&self, pid: u32) -> Option<String>
fn boot_id(&self) -> String
fn parent_pid(&self, pid: u32) -> Option<u32>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ProcessProbe for FakeProbe
impl ProcessProbe for SystemProbe
Available on Linux only.