Skip to main content

ProcessProbe

Trait ProcessProbe 

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

Source

fn is_alive(&self, pid: u32) -> bool

Source

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

Source

fn boot_id(&self) -> String

Source

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§

Source§

impl ProcessProbe for FakeProbe

Source§

impl ProcessProbe for SystemProbe

Available on Linux only.