Skip to main content

CommandRunner

Trait CommandRunner 

Source
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§

Source

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".

Implementors§