Enum TryRecvError

enum TryRecvError

This enumeration is the list of the possible reasons that try_recv could not return data when called. This can occur with both a channel and a sync_channel.

Variants

Empty

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 TryRecvError

fn clone(self: &Self) -> TryRecvError

impl Copy for TryRecvError

impl Debug for TryRecvError

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for TryRecvError

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Eq for TryRecvError

impl Error for TryRecvError

impl Freeze for TryRecvError

impl From for 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 PartialEq for TryRecvError

fn eq(self: &Self, other: &TryRecvError) -> bool

impl RefUnwindSafe for TryRecvError

impl Send for TryRecvError

impl StructuralPartialEq for TryRecvError

impl Sync for TryRecvError

impl Unpin for TryRecvError

impl UnwindSafe for TryRecvError

impl<T> Any for TryRecvError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for TryRecvError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for TryRecvError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for TryRecvError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for TryRecvError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for TryRecvError

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for TryRecvError

fn to_string(self: &Self) -> String

impl<T, U> Into for TryRecvError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for TryRecvError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for TryRecvError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>