pub trait Runner: Send + Sync {
// Required method
fn run(
&self,
program: &str,
args: &[&str],
remove: &[&str],
timeout: Duration,
) -> Result<String, String>;
}Expand description
Runs a CLI, injectable so tests fake the external process boundary.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".