Enum TryRecvError

enum TryRecvError

An error returned from the try_recv function on a Receiver.

Variants

Empty

The channel is currently empty. There are still active Sender handles, so data may yet become available.

Closed

There are no more active senders implying no further messages will ever be sent.

Lagged(u64)

The receiver lagged too far behind and has been forcibly disconnected. Attempting to receive again will return the oldest message still retained by the channel.

Includes the number of skipped messages.

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, f: &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>