pub trait Runner {
// Required methods
fn run(&self, args: &[String], cwd: &Path) -> (Option<i32>, String);
fn home(&self) -> PathBuf;
fn cwd(&self) -> PathBuf;
}Expand description
How a tool reaches the safe-chains binary. Tests and the fuzz target substitute a stand-in.
Required Methods§
Sourcefn run(&self, args: &[String], cwd: &Path) -> (Option<i32>, String)
fn run(&self, args: &[String], cwd: &Path) -> (Option<i32>, String)
Run safe-chains <args> in cwd, returning its exit code (None when it did not exit
normally) and what it printed.
fn home(&self) -> PathBuf
fn cwd(&self) -> PathBuf
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".