pub trait CommandRunner: Send + Sync {
// Required method
fn run(
&self,
program: &str,
args: &[String],
) -> Result<CommandOutcome, ServiceError>;
}Expand description
Boundary around external container-runtime commands.
Required Methods§
Sourcefn run(
&self,
program: &str,
args: &[String],
) -> Result<CommandOutcome, ServiceError>
fn run( &self, program: &str, args: &[String], ) -> Result<CommandOutcome, ServiceError>
Run one argv.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".