Skip to main content

Runner

Trait Runner 

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

Source

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.

Source

fn home(&self) -> PathBuf

Source

fn cwd(&self) -> PathBuf

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§