Enum TryRecvError
enum TryRecvError
An error returned from the try_recv method.
Variants
-
Empty A message could not be received because the channel is empty.
If this is a zero-capacity channel, then the error indicates that there was no sender available to send a message at the time.
-
Disconnected The message could not be received because the channel is empty and disconnected.
Implementations
impl TryRecvError
fn is_empty(self: &Self) -> boolReturns
trueif the receive operation failed because the channel is empty.fn is_disconnected(self: &Self) -> boolReturns
trueif the receive operation failed because the channel is disconnected.
impl Clone for TryRecvError
fn clone(self: &Self) -> TryRecvError
impl Copy for TryRecvError
impl Debug for TryRecvError
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Display for TryRecvError
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for TryRecvError
impl Error for TryRecvError
impl Freeze for TryRecvError
impl From for TryRecvError
fn from(err: RecvError) -> TryRecvError
impl PartialEq for TryRecvError
fn eq(self: &Self, other: &TryRecvError) -> bool
impl RefUnwindSafe for TryRecvError
impl Send for TryRecvError
impl StructuralPartialEq for TryRecvError
impl Sync for TryRecvError
impl Unpin for TryRecvError
impl UnsafeUnpin for TryRecvError
impl UnwindSafe for TryRecvError
impl<T> Any for TryRecvError
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for TryRecvError
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for TryRecvError
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for TryRecvError
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for TryRecvError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for TryRecvError
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for TryRecvError
fn to_string(self: &Self) -> String
impl<T, U> Into for TryRecvError
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 TryRecvError
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for TryRecvError
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>