Enum RecvTimeoutError

pub 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.

Trait Implementations

impl Clone for RecvTimeoutError

fn clone(&self) -> RecvTimeoutError

impl Copy for RecvTimeoutError

impl Debug for RecvTimeoutError

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

impl Display for RecvTimeoutError

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

impl Eq for RecvTimeoutError

fn assert_fields_are_eq(&self)

impl Error for RecvTimeoutError

impl From<RecvError> for RecvTimeoutError

fn from(err: RecvError) -> RecvTimeoutError

Converts a RecvError into a RecvTimeoutError.

This conversion always returns RecvTimeoutError::Disconnected.

No data is allocated on the heap.

impl PartialEq for RecvTimeoutError

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

impl StructuralPartialEq for RecvTimeoutError

impl TrivialClone for RecvTimeoutError

Auto Trait Implementations

impl Freeze for RecvTimeoutError

impl RefUnwindSafe for RecvTimeoutError

impl Send for RecvTimeoutError

impl Sync for RecvTimeoutError

impl Unpin for RecvTimeoutError

impl UnsafeUnpin for RecvTimeoutError

impl UnwindSafe for RecvTimeoutError

Blanket Implementations

impl<T> Any for RecvTimeoutError where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for RecvTimeoutError where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for RecvTimeoutError where T: ?Sized,

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

impl<T> CloneToUninit for RecvTimeoutError where T: Clone,

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

impl<T> From<T> for RecvTimeoutError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Printable for RecvTimeoutError where T: Copy + Debug,

impl<T> SizeHint for RecvTimeoutError where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for RecvTimeoutError

impl<T> ToOwned for RecvTimeoutError where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for RecvTimeoutError where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for RecvTimeoutError where U: From<T>,

fn into(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<U> for RecvTimeoutError where U: Into<T>,

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

impl<T, U> TryInto<U> for RecvTimeoutError where U: TryFrom<T>,

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