Enum commandspec::CommandError
source · Variants§
Implementations§
source§impl CommandError
impl CommandError
sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Returns the error code this command failed with. Can panic if not a Code
.
Trait Implementations§
source§impl Debug for CommandError
impl Debug for CommandError
source§impl Display for CommandError
impl Display for CommandError
source§impl Fail for CommandError
impl Fail for CommandError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more