Skip to main content

Runner

Trait Runner 

Source
pub trait Runner {
    // Required method
    fn run(
        &self,
        program: &Path,
        args: &[&str],
        dir: &Path,
    ) -> Result<(bool, String), String>;
}
Expand description

Runs a tool to completion. The seam for tests; SystemRunner is the real one.

Required Methods§

Source

fn run( &self, program: &Path, args: &[&str], dir: &Path, ) -> Result<(bool, String), String>

Run program args in dir; Ok((success, output)) with the combined stdout and stderr, Err when the tool could not be started.

Implementors§