Skip to main content

Probe

Trait Probe 

Source
pub trait Probe {
    // Required methods
    fn exists(&self, p: &Path) -> bool;
    fn run_version(&self, exe: &Path) -> Option<String>;
    fn which(&self, name: &str) -> Option<PathBuf>;
}
Expand description

Filesystem/process injection trait for testability.

Required Methods§

Source

fn exists(&self, p: &Path) -> bool

Source

fn run_version(&self, exe: &Path) -> Option<String>

Source

fn which(&self, name: &str) -> Option<PathBuf>

Implementors§