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§
fn which(&self, program: &str) -> Option<PathBuf>
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".