pub enum DispatchError {
NoCommand,
Unknown {
group: String,
command: String,
},
Arg(ArgError),
Plan(PlanError),
Transport(Box<dyn Error + Send + Sync>),
}Expand description
Why an operation the user named did not run.
The transport’s own error is the source of Self::Transport rather than
a variant of its own, so this enum does not grow a type parameter for the
client and an adopter’s error type can absorb it whole.
Variants§
Trait Implementations§
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ArgError> for DispatchError
impl From<ArgError> for DispatchError
Auto Trait Implementations§
impl !RefUnwindSafe for DispatchError
impl !UnwindSafe for DispatchError
impl Freeze for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
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