pub enum TypedReceiveError<Error, Wire> {
Io(Error),
Illegal(Wire),
Middleware(Error),
InvalidWire(Wire),
}Expand description
Failure while receiving through compile-time phase-checked middleware.
Variants§
Io(Error)
Reading or decoding the message failed.
Illegal(Wire)
The peer sent a decoded message which is illegal in the connection phase.
Middleware(Error)
Middleware rejected the phase-legal message according to its policy.
InvalidWire(Wire)
Middleware produced a phase-legal value with an invalid wire shape.
Trait Implementations§
Auto Trait Implementations§
impl<Error, Wire> !RefUnwindSafe for TypedReceiveError<Error, Wire>
impl<Error, Wire> !UnwindSafe for TypedReceiveError<Error, Wire>
impl<Error, Wire> Freeze for TypedReceiveError<Error, Wire>
impl<Error, Wire> Send for TypedReceiveError<Error, Wire>
impl<Error, Wire> Sync for TypedReceiveError<Error, Wire>
impl<Error, Wire> Unpin for TypedReceiveError<Error, Wire>
impl<Error, Wire> UnsafeUnpin for TypedReceiveError<Error, Wire>where
Wire: UnsafeUnpin,
Error: UnsafeUnpin,
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