Trait CommandExtCheck

Source
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

Source§

type Error = CommandExtError

Implementors§