pub struct RecvError;
๐ฌThis is a nightly-only experimental API. (
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ยง
1.0.0 ยท Sourceยงimpl Error for RecvError
impl Error for RecvError
Sourceยงfn description(&self) -> &str
fn description(&self) -> &str
๐Deprecated since 1.42.0: use the Display impl or to_string()
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.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.
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.
impl Copy for RecvError
impl Eq for RecvError
impl StructuralPartialEq for RecvError
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