pub trait CommandExtCheck {
    type Error;

    // Required method
    fn check(&mut self) -> Result<Output, Self::Error>;
}
Expand description

Extension trait for std::process::Command to check the output of a command

Required Associated Types§

source

type Error

The error type for the result of checking for an error status

Required Methods§

source

fn check(&mut self) -> Result<Output, Self::Error>

Check the result of a command, returning an error containing the output and error stream content if the status is not success

Implementations on Foreign Types§

source§

impl CommandExtCheck for Command

source§

fn check(&mut self) -> Result<Output, Self::Error>

Check the result of a command, returning an error containing the status, output and error stream content if the status is not success

§

type Error = CommandExtError

Implementors§