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§
fn execute(&self, request: &CommandRequest) -> Result<CommandResult>
Provided Methods§
Sourcefn execute_inheriting_output(
&self,
request: &CommandRequest,
) -> Result<CommandResult>
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".