Skip to main content

ExecStrategy

Trait ExecStrategy 

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

Source

fn exec(&self, binary: &str, args: &[String], cwd: &Path) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§