Skip to main content

ProcessProbe

Trait ProcessProbe 

Source
pub trait ProcessProbe {
    // Required method
    fn is_running(&self, pid: u32, start_time: Option<&str>) -> bool;
}
Expand description

Whether a session’s process is still the one that wrote its file. The seam tests replace: they must never probe the real process table.

Required Methods§

Source

fn is_running(&self, pid: u32, start_time: Option<&str>) -> bool

start_time is the session file’s procStart, when it carries one.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§