pub trait ExpectStatus {
    // Required methods
    fn expect_success(self) -> Output;
    fn expect_failure(self) -> Output;
}
Expand description

We define expect_status on quite a few related types to support different calling patterns.

Required Methods§

source

fn expect_success(self) -> Output

Expect the child process to succeed, and return a std::process::Output object with its output.

source

fn expect_failure(self) -> Output

Expect the child process to fail, and return std::process::Output object with its output.

Implementations on Foreign Types§

source§

impl ExpectStatus for Child

source§

impl ExpectStatus for Output

source§

impl<'a> ExpectStatus for &'a mut Command

source§

impl<ES: ExpectStatus, E: Debug> ExpectStatus for Result<ES, E>

Implementors§