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
impl Error for RecvError
source
impl Error for RecvError
sourcefn description(&self) -> &str
source
fn description(&self) -> &str
source👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · source
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · sourceThe lower-level source of this error, if any. Read more
impl From<RecvError> for TryRecvError
1.24.0 · source
impl From<RecvError> for TryRecvError
1.24.0 · sourcefn from(err: RecvError) -> TryRecvError
source
fn from(err: RecvError) -> TryRecvError
sourceConverts a RecvError into a TryRecvError.
This conversion always returns TryRecvError::Disconnected.
No data is allocated on the heap.
impl From<RecvError> for RecvTimeoutError
1.24.0 · source
impl From<RecvError> for RecvTimeoutError
1.24.0 · sourcefn from(err: RecvError) -> RecvTimeoutError
source
fn from(err: RecvError) -> RecvTimeoutError
sourceConverts a RecvError into a RecvTimeoutError.
This conversion always returns RecvTimeoutError::Disconnected.
No data is allocated on the heap.
impl Copy for RecvError
sourceimpl Eq for RecvError
sourceimpl StructuralEq for RecvError
sourceimpl StructuralPartialEq for RecvError
sourceAuto Trait Implementations
impl RefUnwindSafe for RecvError
impl Send for RecvError
impl Sync for RecvError
impl Unpin for RecvError
impl UnwindSafe for RecvError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more