pub enum DispatchError<E> {
NotFound,
Before(E),
Execute(E),
After(E),
}Expand description
An error raised while dispatching an input.
Variants§
NotFound
No item in the table matched the input.
Before(E)
Middleware rejected the input before the handler ran.
Execute(E)
The selected handler failed.
After(E)
Middleware failed while processing the handler output.
Trait Implementations§
Source§impl<E: Clone> Clone for DispatchError<E>
impl<E: Clone> Clone for DispatchError<E>
Source§fn clone(&self) -> DispatchError<E>
fn clone(&self) -> DispatchError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E: Copy> Copy for DispatchError<E>
Source§impl<E: Debug> Debug for DispatchError<E>
impl<E: Debug> Debug for DispatchError<E>
impl<E: Eq> Eq for DispatchError<E>
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