pub trait Isolator: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn spawn<'life0, 'async_trait>(
&'life0 self,
cmd: CliCommand,
opts: IsolationOpts,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ProcessHandle>, IsolatorError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Spawns a CliCommand in some execution environment and returns
a uniform ProcessHandle.
Required Methods§
fn spawn<'life0, 'async_trait>(
&'life0 self,
cmd: CliCommand,
opts: IsolationOpts,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ProcessHandle>, IsolatorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".