pub trait CommandExt {
// Required methods
fn output_checked(&mut self) -> Result<Output, CommandError>;
fn log(&mut self) -> &mut Self;
}Expand description
Extension trait for utilities on std::process::Command
Required Methods§
Sourcefn output_checked(&mut self) -> Result<Output, CommandError>
fn output_checked(&mut self) -> Result<Output, CommandError>
Same as Command::output() but will treat non-success status of the Command as an error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.