Enum TrySendError
enum TrySendError<T>
This enumeration is the list of the possible error outcomes for the
try_send method.
Variants
-
Full(T) The data could not be sent on the
sync_channelbecause it would require that the callee block to send the data.If this is a buffered channel, then the buffer is full at this time. If this is not a buffered channel, then there is no
Receiveravailable to acquire the data.-
Disconnected(T) This
sync_channel's receiving half has disconnected, so the data could not be sent. The data is returned back to the callee in this case.
Implementations
impl<T> Any for TrySendError<T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for TrySendError<T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for TrySendError<T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for TrySendError<T>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> Debug for TrySendError<T>
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl<T> Display for TrySendError<T>
fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl<T> Error for TrySendError<T>
impl<T> Freeze for TrySendError<T>
impl<T> From for TrySendError<T>
fn from(err: SendError<T>) -> TrySendError<T>Converts a
SendError<T>into aTrySendError<T>.This conversion always returns a
TrySendError::Disconnectedcontaining the data in theSendError<T>.No data is allocated on the heap.
impl<T> From for TrySendError<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> RefUnwindSafe for TrySendError<T>
impl<T> Send for TrySendError<T>
impl<T> StructuralPartialEq for TrySendError<T>
impl<T> Sync for TrySendError<T>
impl<T> ToOwned for TrySendError<T>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for TrySendError<T>
fn to_string(self: &Self) -> String
impl<T> Unpin for TrySendError<T>
impl<T> UnwindSafe for TrySendError<T>
impl<T, U> Into for TrySendError<T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for TrySendError<T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for TrySendError<T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: $crate::clone::Clone> Clone for TrySendError<T>
fn clone(self: &Self) -> TrySendError<T>
impl<T: $crate::cmp::Eq> Eq for TrySendError<T>
impl<T: $crate::cmp::PartialEq> PartialEq for TrySendError<T>
fn eq(self: &Self, other: &TrySendError<T>) -> bool