pub enum RecvError {
Closed,
DowncastFailed(Box<dyn Any + Send>),
}Expand description
An error thrown while receiving from a dynamically typed tokio::sync::mpsc channel.
Variants§
Closed
The channel was explicitly closed, or all senders were dropped, implicitly closing it.
DowncastFailed(Box<dyn Any + Send>)
A value received from the channel could not be cast into the correct expected type. This is always resultant from the other end of a channel failing to follow the session type of the channel.
Trait Implementations§
Source§impl Error for RecvError
impl Error for RecvError
1.30.0 · 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 RecvError
impl !RefUnwindSafe for RecvError
impl Send for RecvError
impl !Sync for RecvError
impl Unpin for RecvError
impl !UnwindSafe for RecvError
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