Skip to main content

Runner

Trait Runner 

Source
pub trait Runner: Send + Sync {
    // Required method
    fn run(
        &self,
        invocation: &Invocation,
        progress: &mut dyn FnMut(&str),
    ) -> Result<RunOutput>;
}
Expand description

Runs processes; tests record or script it.

Required Methods§

Source

fn run( &self, invocation: &Invocation, progress: &mut dyn FnMut(&str), ) -> Result<RunOutput>

Runs invocation, calling progress with each line (or \r update) of its stderr.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§