pub trait Machine {
// Required methods
fn installed(&self, program: &str) -> bool;
fn docker_running(&self) -> bool;
fn os(&self) -> String;
fn run(
&self,
program: &str,
args: &[&str],
dir: &Path,
) -> Result<(), String>;
}Expand description
What the CLI needs to know about, or do on, the machine.
Required Methods§
Sourcefn docker_running(&self) -> bool
fn docker_running(&self) -> bool
Whether the Docker daemon answers.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".