pub trait CommandRunner {
// Required method
fn run(&self, spec: &SpawnSpec) -> Result<ExecOutcome>;
}Expand description
Abstraction over “run this command and give me its output + exit code”.
Required Methods§
fn run(&self, spec: &SpawnSpec) -> Result<ExecOutcome>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".