Skip to main content

CommandErrorContext

Trait CommandErrorContext 

Source
pub trait CommandErrorContext {
    // Required method
    fn output_with_context(&mut self) -> impl Future<Output = Result<Output>>;
}
Expand description

Extension trait that maps spawn errors to include the program path.

Required Methods§

Source

fn output_with_context(&mut self) -> impl Future<Output = Result<Output>>

Like .output() but the error includes the program name.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl CommandErrorContext for Command

Source§

async fn output_with_context(&mut self) -> Result<Output>

Implementors§