pub enum CommandError {
    Io(Error),
    Interrupt,
    Code(i32),
}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 moreAuto Trait Implementations§
impl Freeze for CommandError
impl !RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl !UnwindSafe for CommandError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more