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§
fn exists(&self, p: &Path) -> bool
fn run_version(&self, exe: &Path) -> Option<String>
fn which(&self, name: &str) -> Option<PathBuf>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".