pub enum RecvWithError<E> {
Core(Error),
Decode(E),
}Expand description
Error returned by try_recv_with APIs.
Variants§
Core(Error)
A core error (incompatible layout, etc.).
Decode(E)
The user-provided decoder returned an error.
The message is considered consumed; higher-level retry should be implemented by the caller (e.g., by re-publishing) if desired.
Trait Implementations§
Source§impl<E: Clone> Clone for RecvWithError<E>
impl<E: Clone> Clone for RecvWithError<E>
Source§fn clone(&self) -> RecvWithError<E>
fn clone(&self) -> RecvWithError<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for RecvWithError<E>
impl<E: Debug> Debug for RecvWithError<E>
Source§impl<E> From<Error> for RecvWithError<E>
impl<E> From<Error> for RecvWithError<E>
Source§impl<E: PartialEq> PartialEq for RecvWithError<E>
impl<E: PartialEq> PartialEq for RecvWithError<E>
impl<E: Eq> Eq for RecvWithError<E>
impl<E> StructuralPartialEq for RecvWithError<E>
Auto Trait Implementations§
impl<E> Freeze for RecvWithError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RecvWithError<E>where
E: RefUnwindSafe,
impl<E> Send for RecvWithError<E>where
E: Send,
impl<E> Sync for RecvWithError<E>where
E: Sync,
impl<E> Unpin for RecvWithError<E>where
E: Unpin,
impl<E> UnwindSafe for RecvWithError<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