pub trait IsFailure {
// Required methods
fn failed(&self) -> bool;
fn code(&self) -> i32;
fn stdout(&self) -> Option<String>;
fn stderr(&self) -> Option<String>;
}Expand description
IsFailure - providing idiomatic ways to access fields without unwrapping
Returns options, partly as it might have been piped, and partly as Success does not have the stderr field