pub enum DispatchError<E> {
NotFound,
Param {
stage: DispatchStage,
error: ParamError,
},
Before(E),
Command(E),
After(E),
Response(E),
}Expand description
An error raised while selecting or executing a command.
Variants§
NotFound
No command in the table matched the current context.
Param
Resource arguments for one pipeline stage could not be prepared safely.
Fields
§
stage: DispatchStageStage whose parameters could not be prepared.
§
error: ParamErrorParameter validation or fetch failure.
Before(E)
The configured before hook returned an application error.
Command(E)
The selected command returned an application error.
After(E)
The configured after hook returned an application error.
Response(E)
The configured response handler returned an application error.
Trait Implementations§
Source§impl<E: Clone> Clone for DispatchError<E>
impl<E: Clone> Clone for DispatchError<E>
impl<E: Copy> Copy for DispatchError<E>
Source§impl<E: Debug> Debug for DispatchError<E>
impl<E: Debug> Debug for DispatchError<E>
Source§impl<E> Display for DispatchError<E>where
E: Display,
impl<E> Display for DispatchError<E>where
E: Display,
impl<E: Eq> Eq for DispatchError<E>
Source§impl<E> Error for DispatchError<E>where
E: Error + 'static,
impl<E> Error for DispatchError<E>where
E: Error + 'static,
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<E: PartialEq> PartialEq for DispatchError<E>
impl<E: PartialEq> PartialEq for DispatchError<E>
impl<E: PartialEq> StructuralPartialEq for DispatchError<E>
Auto Trait Implementations§
impl<E> Freeze for DispatchError<E>where
E: Freeze,
impl<E> RefUnwindSafe for DispatchError<E>where
E: RefUnwindSafe,
impl<E> Send for DispatchError<E>where
E: Send,
impl<E> Sync for DispatchError<E>where
E: Sync,
impl<E> Unpin for DispatchError<E>where
E: Unpin,
impl<E> UnsafeUnpin for DispatchError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for DispatchError<E>where
E: UnwindSafe,
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