pub enum CommandError<T>where
T: Fail,{
Command(T),
Huawei(HuaweiError),
}Expand description
An error either raised by a command implementation, or by the library itself.
Variants§
Command(T)
An error in the implementation of some generic command.
Huawei(HuaweiError)
An error raised by the library itself.
Trait Implementations§
Source§impl<T> Debug for CommandError<T>
impl<T> Debug for CommandError<T>
Source§impl<T> Display for CommandError<T>where
T: Fail,
impl<T> Display for CommandError<T>where
T: Fail,
Source§impl<T> Fail for CommandError<T>where
T: Fail,
impl<T> Fail for CommandError<T>where
T: Fail,
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 moreSource§impl<T> From<HuaweiError> for CommandError<T>where
T: Fail,
impl<T> From<HuaweiError> for CommandError<T>where
T: Fail,
Source§fn from(e: HuaweiError) -> CommandError<T>
fn from(e: HuaweiError) -> CommandError<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for CommandError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for CommandError<T>
impl<T> Send for CommandError<T>
impl<T> Sync for CommandError<T>
impl<T> Unpin for CommandError<T>where
T: Unpin,
impl<T> !UnwindSafe for CommandError<T>
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