Enum RecvTimeoutError
enum RecvTimeoutError
This enumeration is the list of possible errors that made recv_timeout
unable to return data when called. This can occur with both a channel and
a sync_channel.
Variants
-
Timeout This channel is currently empty, but the Sender(s) have not yet disconnected, so data may yet become available.
-
Disconnected The channel's sending half has become disconnected, and there will never be any more data received on it.
Implementations
impl Clone for RecvTimeoutError
fn clone(self: &Self) -> RecvTimeoutError
impl Copy for RecvTimeoutError
impl Debug for RecvTimeoutError
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for RecvTimeoutError
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Eq for RecvTimeoutError
impl Error for RecvTimeoutError
impl Freeze for RecvTimeoutError
impl From for RecvTimeoutError
fn from(err: RecvError) -> RecvTimeoutErrorConverts a
RecvErrorinto aRecvTimeoutError.This conversion always returns
RecvTimeoutError::Disconnected.No data is allocated on the heap.
impl PartialEq for RecvTimeoutError
fn eq(self: &Self, other: &RecvTimeoutError) -> bool
impl RefUnwindSafe for RecvTimeoutError
impl Send for RecvTimeoutError
impl StructuralPartialEq for RecvTimeoutError
impl Sync for RecvTimeoutError
impl Unpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
impl<T> Any for RecvTimeoutError
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for RecvTimeoutError
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for RecvTimeoutError
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for RecvTimeoutError
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for RecvTimeoutError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for RecvTimeoutError
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for RecvTimeoutError
fn to_string(self: &Self) -> String
impl<T, U> Into for RecvTimeoutError
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for RecvTimeoutError
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for RecvTimeoutError
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>