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§
Sourcefn output_with_context(&mut self) -> impl Future<Output = Result<Output>>
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".