pub trait CommandRunner: Send + Sync {
// Required methods
fn run_capture(
&self,
program: &str,
args: &[String],
) -> Result<CommandOutput>;
fn run_capture_with_input(
&self,
program: &str,
args: &[String],
input: &str,
) -> Result<CommandOutput>;
fn run_inherit(
&self,
program: &str,
args: &[String],
) -> Result<CommandStatus>;
}Required Methods§
fn run_capture(&self, program: &str, args: &[String]) -> Result<CommandOutput>
fn run_capture_with_input( &self, program: &str, args: &[String], input: &str, ) -> Result<CommandOutput>
fn run_inherit(&self, program: &str, args: &[String]) -> Result<CommandStatus>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".