Trait ExitStatusExt

Source
pub trait ExitStatusExt {
    // Required method
    fn check_status(&mut self, stderr: File) -> Result<()>;
}
Expand description

Helpers intended for std::process::ExitStatus.

Required Methods§

Source

fn check_status(&mut self, stderr: File) -> Result<()>

If the exit status signals it was not successful, return an error. Note that we intentionally don’t include the command string in the output; we leave it to the caller to add that if they want, as it may be verbose.

Implementations on Foreign Types§

Source§

impl ExitStatusExt for ExitStatus

Source§

fn check_status(&mut self, stderr: File) -> Result<()>

Implementors§