pub trait CommandExec {
// Required methods
fn exec<CR>(
&self,
runner: &CR,
service_name: &str,
command: &Command,
opts: &Exec,
) -> Result<()>
where CR: CommandRunner;
fn shell<CR>(
&self,
runner: &CR,
service_name: &str,
opts: &Exec,
) -> Result<()>
where CR: CommandRunner;
}Expand description
We implement exec with a trait so we can put it in its own
module.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".