Enum TryRecvError

enum TryRecvError

Error returned by the try_recv function on Receiver.

Variants

Empty

The send half of the channel has not yet sent a value.

Closed

The send half of the channel was dropped without sending a value.

Implementations

impl Clone for TryRecvError

fn clone(self: &Self) -> 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, fmt: &mut fmt::Formatter<'_>) -> fmt::Result

impl Eq for TryRecvError

impl Error for TryRecvError

impl Freeze for TryRecvError

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>