pub struct RecvError;mpmc_channel)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ยง
impl Copy for RecvError
impl Eq for RecvError
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
use the Display impl or to_string()
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.