Trait ProcessDriver
Source pub trait ProcessDriver: Send + Sync {
// Required methods
fn spawn<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
spec: &'life1 DaemonSpec,
stdout_path: &'life2 PathBuf,
stderr_path: &'life3 PathBuf,
) -> Pin<Box<dyn Future<Output = Result<ProcessInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn stop<'life0, 'async_trait>(
&'life0 self,
pid: u32,
timeout_secs: u64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn kill<'life0, 'async_trait>(
&'life0 self,
pid: u32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_alive<'life0, 'async_trait>(
&'life0 self,
pid: u32,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn wait<'life0, 'async_trait>(
&'life0 self,
pid: u32,
) -> Pin<Box<dyn Future<Output = Result<Option<i32>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resource_usage<'life0, 'async_trait>(
&'life0 self,
pid: u32,
) -> Pin<Box<dyn Future<Output = Result<ResourceUsage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}