Enum SendTimeoutError
pub enum SendTimeoutError<T>
An error returned from the send_timeout method.
The error contains the message being sent so it can be recovered.
Variants
-
Timeout(T) The message could not be sent because the channel is full and the operation timed out.
If this is a zero-capacity channel, then the error indicates that there was no receiver available to receive the message and the operation timed out.
-
Disconnected(T) The message could not be sent because the channel is disconnected.
Trait Implementations
impl<T> Debug for SendTimeoutError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T> Display for SendTimeoutError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T> Error for SendTimeoutError<T>
impl<T> From<SendError<T>> for SendTimeoutError<T>
fn from(err: SendError<T>) -> 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>
fn assert_fields_are_eq(&self)
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) -> TReturns the argument unchanged.
impl<T> Printable for SendTimeoutError<T>
where
T: Copy + Debug,
impl<T> SizeHint for SendTimeoutError<T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for SendTimeoutError<T>
impl<T> ToOwned for SendTimeoutError<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn 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) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SendTimeoutError<T>
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 SendTimeoutError<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>