Trait cage::command_runner::CommandRunner [−][src]
pub trait CommandRunner { type Command: Command; fn build<S: AsRef<OsStr>>(&self, program: S) -> Self::Command; }
A factory that produces objects conforming to our Command
wrapper
trait. During tests, we’ll use this to mock out the underlying system
and record all commands executed.
Associated Types
type Command: Command
[src]
The type of the commands we build. Must implement our custom
Command
trait.
Required methods
Loading content...Implementors
impl CommandRunner for OsCommandRunner
[src]
impl CommandRunner for OsCommandRunner
[src]impl CommandRunner for TestCommandRunner
[src]
impl CommandRunner for TestCommandRunner
[src]