Struct TrySendError
pub struct TrySendError<T> { /* private fields */ }
The error type returned from try_send.
Implementations
impl<T> TrySendError<T>
fn is_full(&self) -> boolReturns
trueif this error is a result of the channel being full.fn is_disconnected(&self) -> boolReturns
trueif this error is a result of the receiver being dropped.fn into_inner(self) -> TReturns the message that was attempted to be sent but failed.
fn into_send_error(self) -> SendErrorDrops the message and converts into a
SendError.
Trait Implementations
impl<T> Debug for TrySendError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T> Display for TrySendError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Any> Error for TrySendError<T>
impl<T: Clone> Clone for TrySendError<T>
fn clone(&self) -> TrySendError<T>
impl<T: Eq> Eq for TrySendError<T>
impl<T: PartialEq> PartialEq for TrySendError<T>
fn eq(&self, other: &TrySendError<T>) -> bool
impl<T: PartialEq> StructuralPartialEq for TrySendError<T>
Auto Trait Implementations
impl<T> Freeze for TrySendError<T>
where
T: Freeze,
impl<T> RefUnwindSafe for TrySendError<T>
where
T: RefUnwindSafe,
impl<T> Send for TrySendError<T>
where
T: Send,
impl<T> Sync for TrySendError<T>
where
T: Sync,
impl<T> Unpin for TrySendError<T>
where
T: Unpin,
impl<T> UnsafeUnpin for TrySendError<T>
where
T: UnsafeUnpin,
impl<T> UnwindSafe for TrySendError<T>
where
T: UnwindSafe,
Blanket Implementations
impl<T> Any for TrySendError<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TrySendError<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TrySendError<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for TrySendError<T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for TrySendError<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for TrySendError<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for TrySendError<T>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for TrySendError<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 TrySendError<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TrySendError<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>