pub struct RecvError;Expand description
An error returned from the recv function on a Receiver.
The recv operation can only fail if the sending half of a
channel (or sync_channel) is disconnected, implying that no further
messages will ever be received.
Trait Implementations§
1.0.0 · 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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
1.24.0 · Source§impl From<RecvError> for RecvTimeoutError
impl From<RecvError> for RecvTimeoutError
Source§fn from(err: RecvError) -> RecvTimeoutError
fn from(err: RecvError) -> RecvTimeoutError
Converts a RecvError into a RecvTimeoutError.
This conversion always returns RecvTimeoutError::Disconnected.
No data is allocated on the heap.
Source§impl<T> From<RecvError> for RecvTimeoutError<T>
impl<T> From<RecvError> for RecvTimeoutError<T>
Source§fn from(err: RecvError) -> RecvTimeoutError<T>
fn from(err: RecvError) -> RecvTimeoutError<T>
Converts a RecvError into a RecvTimeoutError.
This conversion always returns RecvTimeoutError::Disconnected.
No data is allocated on the heap.
1.24.0 · Source§impl From<RecvError> for TryRecvError
impl From<RecvError> for TryRecvError
Source§fn from(err: RecvError) -> TryRecvError
fn from(err: RecvError) -> TryRecvError
Converts a RecvError into a TryRecvError.
This conversion always returns TryRecvError::Disconnected.
No data is allocated on the heap.
Source§impl<T> From<RecvError> for TryRecvError<T>
impl<T> From<RecvError> for TryRecvError<T>
Source§fn from(err: RecvError) -> TryRecvError<T>
fn from(err: RecvError) -> TryRecvError<T>
Converts a RecvError into a TryRecvError.
This conversion always returns TryRecvError::Disconnected.
No data is allocated on the heap.