Skip to main content

ProcessProbe

Trait ProcessProbe 

Source
pub trait ProcessProbe: Send + Sync {
    // Required methods
    fn listener<'life0, 'life1, 'async_trait>(
        &'life0 self,
        port: u16,
        host: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Listener, StateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn process<'life0, 'async_trait>(
        &'life0 self,
        pid: u32,
    ) -> Pin<Box<dyn Future<Output = Result<ProcessIdentity, StateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn command_line<'life0, 'async_trait>(
        &'life0 self,
        _pid: u32,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, StateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn alive<'life0, 'async_trait>(
        &'life0 self,
        _pid: u32,
    ) -> Pin<Box<dyn Future<Output = Result<bool, StateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn listener<'life0, 'life1, 'async_trait>( &'life0 self, port: u16, host: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Listener, StateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn process<'life0, 'async_trait>( &'life0 self, pid: u32, ) -> Pin<Box<dyn Future<Output = Result<ProcessIdentity, StateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn command_line<'life0, 'async_trait>( &'life0 self, _pid: u32, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, StateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return argv including the executable; unavailable introspection must fail closed.

Source

fn alive<'life0, 'async_trait>( &'life0 self, _pid: u32, ) -> Pin<Box<dyn Future<Output = Result<bool, StateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Whether any process holds pid; probes that cannot tell must fail closed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§