pub enum InterceptError<Error, Message> {
Middleware(Error),
Invalid(Message),
}Expand description
Failure while applying or validating middleware output.
Variants§
Middleware(Error)
Middleware rejected the message according to its own policy.
Invalid(Message)
Middleware returned a message which is illegal in the supplied state.
Trait Implementations§
Source§impl<Error: Clone, Message: Clone> Clone for InterceptError<Error, Message>
impl<Error: Clone, Message: Clone> Clone for InterceptError<Error, Message>
Source§fn clone(&self) -> InterceptError<Error, Message>
fn clone(&self) -> InterceptError<Error, Message>
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<Error: Copy, Message: Copy> Copy for InterceptError<Error, Message>
impl<Error: Eq, Message: Eq> Eq for InterceptError<Error, Message>
impl<Error: PartialEq, Message: PartialEq> StructuralPartialEq for InterceptError<Error, Message>
Auto Trait Implementations§
impl<Error, Message> Freeze for InterceptError<Error, Message>
impl<Error, Message> RefUnwindSafe for InterceptError<Error, Message>where
Error: RefUnwindSafe,
Message: RefUnwindSafe,
impl<Error, Message> Send for InterceptError<Error, Message>
impl<Error, Message> Sync for InterceptError<Error, Message>
impl<Error, Message> Unpin for InterceptError<Error, Message>
impl<Error, Message> UnsafeUnpin for InterceptError<Error, Message>where
Error: UnsafeUnpin,
Message: UnsafeUnpin,
impl<Error, Message> UnwindSafe for InterceptError<Error, Message>where
Error: UnwindSafe,
Message: 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