pub enum WireAdapterError<Error, Wire> {
Middleware(Error),
IllegalReplacement(Wire),
}Expand description
Failure from direction-wide middleware adapted to a typed phase.
Variants§
Middleware(Error)
The wrapped middleware rejected the message according to its policy.
IllegalReplacement(Wire)
The wrapped middleware returned a wire message illegal in the typed phase.
Trait Implementations§
Source§impl<Error: Clone, Wire: Clone> Clone for WireAdapterError<Error, Wire>
impl<Error: Clone, Wire: Clone> Clone for WireAdapterError<Error, Wire>
Source§fn clone(&self) -> WireAdapterError<Error, Wire>
fn clone(&self) -> WireAdapterError<Error, Wire>
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: Eq, Wire: Eq> Eq for WireAdapterError<Error, Wire>
impl<Error: PartialEq, Wire: PartialEq> StructuralPartialEq for WireAdapterError<Error, Wire>
Auto Trait Implementations§
impl<Error, Wire> Freeze for WireAdapterError<Error, Wire>
impl<Error, Wire> RefUnwindSafe for WireAdapterError<Error, Wire>where
Error: RefUnwindSafe,
Wire: RefUnwindSafe,
impl<Error, Wire> Send for WireAdapterError<Error, Wire>
impl<Error, Wire> Sync for WireAdapterError<Error, Wire>
impl<Error, Wire> Unpin for WireAdapterError<Error, Wire>
impl<Error, Wire> UnsafeUnpin for WireAdapterError<Error, Wire>where
Error: UnsafeUnpin,
Wire: UnsafeUnpin,
impl<Error, Wire> UnwindSafe for WireAdapterError<Error, Wire>where
Error: UnwindSafe,
Wire: 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