Skip to main content

CommandRunner

Trait CommandRunner 

Source
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§

Source

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".

Implementors§