pub enum ChainError<First, Second> {
First(First),
Second(Second),
}Expand description
Identifies which stage of a two-part middleware chain failed.
Variants§
First(First)
The first stage rejected the message.
Second(Second)
The second stage rejected the message.
Trait Implementations§
Source§impl<First: Clone, Second: Clone> Clone for ChainError<First, Second>
impl<First: Clone, Second: Clone> Clone for ChainError<First, Second>
Source§fn clone(&self) -> ChainError<First, Second>
fn clone(&self) -> ChainError<First, Second>
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<First: Copy, Second: Copy> Copy for ChainError<First, Second>
impl<First: Eq, Second: Eq> Eq for ChainError<First, Second>
impl<First: PartialEq, Second: PartialEq> StructuralPartialEq for ChainError<First, Second>
Auto Trait Implementations§
impl<First, Second> Freeze for ChainError<First, Second>
impl<First, Second> RefUnwindSafe for ChainError<First, Second>where
First: RefUnwindSafe,
Second: RefUnwindSafe,
impl<First, Second> Send for ChainError<First, Second>
impl<First, Second> Sync for ChainError<First, Second>
impl<First, Second> Unpin for ChainError<First, Second>
impl<First, Second> UnsafeUnpin for ChainError<First, Second>where
First: UnsafeUnpin,
Second: UnsafeUnpin,
impl<First, Second> UnwindSafe for ChainError<First, Second>where
First: UnwindSafe,
Second: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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