pub trait ExecStrategy {
// Required method
fn exec(&self, binary: &str, args: &[String], cwd: &Path) -> Result<()>;
}Expand description
Pluggable exec backend. Production uses RealExec (execvp on
Unix, spawn-and-wait on Windows). Tests use RecordingExec.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".