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
sourceimpl Error for RecvError
impl Error for RecvError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.24.0 · sourceimpl From<RecvError> for RecvTimeoutError
impl From<RecvError> for RecvTimeoutError
sourcefn 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.
1.24.0 · sourceimpl From<RecvError> for TryRecvError
impl From<RecvError> for TryRecvError
sourcefn 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.
sourceimpl PartialEq<RecvError> for RecvError
impl PartialEq<RecvError> for RecvError
impl Copy for RecvError
impl Eq for RecvError
impl StructuralEq for RecvError
impl StructuralPartialEq for RecvError
Auto Trait Implementations
impl RefUnwindSafe for RecvError
impl Send for RecvError
impl Sync for RecvError
impl Unpin for RecvError
impl UnwindSafe for RecvError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more