pub enum RecvError<E> {
BufferTooSmall {
needed: usize,
got: usize,
},
Backend(E),
}Expand description
Error for a receive attempt.
Variants§
BufferTooSmall
Caller-provided buffer was too small to hold the received payload.
Backend(E)
Backend-specific error.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for RecvError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RecvError<E>where
E: RefUnwindSafe,
impl<E> Send for RecvError<E>where
E: Send,
impl<E> Sync for RecvError<E>where
E: Sync,
impl<E> Unpin for RecvError<E>where
E: Unpin,
impl<E> UnsafeUnpin for RecvError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for RecvError<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