Enum SendTimeoutError

pub enum SendTimeoutError<T>

Error returned by Sender::send_timeout.

Variants

Timeout(T)

The data could not be sent on the channel because the channel is full, and the timeout to send has elapsed.

Closed(T)

The receive half of the channel was explicitly closed or has been dropped.

Implementations

impl<T> SendTimeoutError<T>

fn into_inner(self) -> T

Consume the SendTimeoutError, returning the unsent value.

Trait Implementations

impl<T> Debug for SendTimeoutError<T>

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

impl<T> Display for SendTimeoutError<T>

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

impl<T> Error for SendTimeoutError<T>

impl<T: Clone> Clone for SendTimeoutError<T>

fn clone(&self) -> SendTimeoutError<T>

impl<T: Copy> Copy for SendTimeoutError<T>

impl<T: Eq> Eq for SendTimeoutError<T>

impl<T: PartialEq> PartialEq for SendTimeoutError<T>

fn eq(&self, other: &SendTimeoutError<T>) -> bool

impl<T: PartialEq> StructuralPartialEq for SendTimeoutError<T>

Auto Trait Implementations

impl<T> Freeze for SendTimeoutError<T> where T: Freeze + Freeze,

impl<T> RefUnwindSafe for SendTimeoutError<T> where T: RefUnwindSafe + RefUnwindSafe,

impl<T> Send for SendTimeoutError<T> where T: Send + Send,

impl<T> Sync for SendTimeoutError<T> where T: Sync + Sync,

impl<T> Unpin for SendTimeoutError<T> where T: Unpin + Unpin,

impl<T> UnsafeUnpin for SendTimeoutError<T> where T: UnsafeUnpin + UnsafeUnpin,

impl<T> UnwindSafe for SendTimeoutError<T> where T: UnwindSafe + UnwindSafe,

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for SendTimeoutError<T>

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

fn to_string(&self) -> String

impl<T, U> Into<U> for SendTimeoutError<T> 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 SendTimeoutError<T> where U: Into<T>,

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

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

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