Struct shells::Error [] [src]

pub struct Error {
    pub code: i32,
    pub stdout: String,
    pub stderr: String,
}

Struct holding the resulting environment after executing a failed command with the wrap_* family of macros. It implements the Error trait and its implementation of the Display trait is identical to the implementation of the Display trait of its stderr field.

Fields

code
stdout
stderr

Trait Implementations

impl Error for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Error

fn eq(&self, __arg_0: &Error) -> bool

fn ne(&self, __arg_0: &Error) -> bool

impl Clone for Error

fn clone(&self) -> Error

fn clone_from(&mut self, source: &Self)

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result