Trait ProcessCleanupProvider
Source pub trait ProcessCleanupProvider: Send + Sync {
// Required methods
fn process_exists(&self, pid: u32) -> bool;
fn check_port(&self, port: u16) -> Option<u32>;
fn kill_process(&self, pid: u32) -> bool;
fn terminate_gracefully<'life0, 'async_trait>(
&'life0 self,
pid: u32,
grace_period_ms: u64,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn wait_for_port_free<'life0, 'async_trait>(
&'life0 self,
port: u16,
max_retries: u8,
delay_ms: u64,
) -> Pin<Box<dyn Future<Output = ProcessResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}