pub trait CommandRunner: Send + Sync {
// Required method
fn run(
&self,
program: &str,
args: &[&str],
cwd: &Path,
) -> Result<CommandOutput, CommandError>;
}Expand description
Trait for executing subprocess commands.
Required Methods§
fn run( &self, program: &str, args: &[&str], cwd: &Path, ) -> Result<CommandOutput, CommandError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".