pub trait CommandRunner: Send + Sync {
    // Required method
    fn run<'life0, 'async_trait>(
        &'life0 self,
        cmd: Command
    ) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait for running commands.

This is supported on feature=cmd only.

Example.

Required Methods§

source

fn run<'life0, 'async_trait>( &'life0 self, cmd: Command ) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Runs the given command.

Implementors§