pub trait CommandRunner: Send + Sync {
// Required method
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
program: &'life1 str,
args: &'life2 [String],
timeout: Duration,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<CmdOutput, RuntimeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Runs engine CLI commands. Mocked in unit tests; SystemRunner in use.
Required Methods§
Sourcefn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
program: &'life1 str,
args: &'life2 [String],
timeout: Duration,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<CmdOutput, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
program: &'life1 str,
args: &'life2 [String],
timeout: Duration,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<CmdOutput, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Run program args, capturing at most limit bytes per stream.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".