pub enum AnyRecvError {
RecvError(RecvError),
RecvTimeoutError(RecvTimeoutError),
TryRecvError(TryRecvError),
WrongType(Box<dyn Any>),
BufRecvError(TypeId),
EmptyBuffer,
}
Expand description
Error type for receievers. If an mpsc error occurs, it will be wrapped
by an appropriate wrapper variant. If receiver is supplied an incorrect type,
a [AnyRecvError::WrongType(Box
Variants§
RecvError(RecvError)
RecvTimeoutError(RecvTimeoutError)
TryRecvError(TryRecvError)
WrongType(Box<dyn Any>)
BufRecvError(TypeId)
EmptyBuffer
Trait Implementations§
Source§impl Debug for AnyRecvError
impl Debug for AnyRecvError
Source§impl Display for AnyRecvError
impl Display for AnyRecvError
Source§impl Error for AnyRecvError
impl Error for AnyRecvError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AnyRecvError
impl !RefUnwindSafe for AnyRecvError
impl !Send for AnyRecvError
impl !Sync for AnyRecvError
impl Unpin for AnyRecvError
impl !UnwindSafe for AnyRecvError
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