Skip to main content

Runner

Trait Runner 

Source
pub trait Runner: Send + Sync {
    // Required methods
    fn which(&self, program: &str) -> Option<PathBuf>;
    fn run(
        &self,
        spec: RunSpec,
    ) -> impl Future<Output = Result<RunOutput, RunError>> + Send;
}
Expand description

How a recipe’s program is found and run: the real one below, a fake in the tests.

Required Methods§

Source

fn which(&self, program: &str) -> Option<PathBuf>

Source

fn run( &self, spec: RunSpec, ) -> impl Future<Output = Result<RunOutput, RunError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§