Skip to main content

CommandRunner

Trait CommandRunner 

Source
pub trait CommandRunner: Send + Sync {
    // Required method
    fn execute(&self, request: &CommandRequest) -> Result<CommandResult>;

    // Provided method
    fn execute_inheriting_output(
        &self,
        request: &CommandRequest,
    ) -> Result<CommandResult> { ... }
}

Required Methods§

Provided Methods§

Source

fn execute_inheriting_output( &self, request: &CommandRequest, ) -> Result<CommandResult>

Runs a project-owned command with native stdout/stderr when the adapter supports it. Custom adapters retain capture semantics until they explicitly opt into streaming.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§