Trait ProcessMonitor

Source
pub trait ProcessMonitor {
    // Required methods
    fn start<'life0, 'async_trait>(
        &'life0 mut self,
        pid: u32,
        child_io: ChildIo,
    ) -> Pin<Box<dyn Future<Output = MicrosandboxUtilsResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn stop<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = MicrosandboxUtilsResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait for monitoring processes

Required Methods§

Source

fn start<'life0, 'async_trait>( &'life0 mut self, pid: u32, child_io: ChildIo, ) -> Pin<Box<dyn Future<Output = MicrosandboxUtilsResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start monitoring a process

Source

fn stop<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = MicrosandboxUtilsResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stop monitoring

Implementors§