Skip to main content

CommandRunner

Trait CommandRunner 

Source
pub trait CommandRunner: Send + Sync {
    // Required method
    fn run<'a>(
        &'a self,
        program: &'a str,
        arguments: &'a [String],
        cancellation: &'a CancellationToken,
    ) -> BoxFuture<'a, Result<CommandOutput, CommandRunError>>;
}
Expand description

Injectable process boundary used by gist sharing.

Required Methods§

Source

fn run<'a>( &'a self, program: &'a str, arguments: &'a [String], cancellation: &'a CancellationToken, ) -> BoxFuture<'a, Result<CommandOutput, CommandRunError>>

Run one command with captured stdout/stderr and linked cancellation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§