Enum RecvError

enum RecvError

An error returned from the recv function on a Receiver.

Variants

Closed

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

Lagged(u64)

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

Includes the number of skipped messages.

Implementations

impl Clone for RecvError

fn clone(self: &Self) -> RecvError

impl Debug for RecvError

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

impl Display for RecvError

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

impl Eq for RecvError

impl Error for RecvError

impl Freeze for RecvError

impl PartialEq for RecvError

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

impl RefUnwindSafe for RecvError

impl Send for RecvError

impl StructuralPartialEq for RecvError

impl Sync for RecvError

impl Unpin for RecvError

impl UnwindSafe for RecvError

impl<T> Any for RecvError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for RecvError

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

impl<T> BorrowMut for RecvError

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

impl<T> CloneToUninit for RecvError

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

impl<T> From for RecvError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for RecvError

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

impl<T> ToString for RecvError

fn to_string(self: &Self) -> String

impl<T, U> Into for RecvError

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 RecvError

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

impl<T, U> TryInto for RecvError

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