pub enum TryRecvError {
Empty,
Disconnected,
}Expand description
Signals that a non-blocking attempt at receiving a value through a channel has failed. There are two possible reasons for this: (1) the message buffer of the channel is empty, or (2) the channel is closed.
Variants§
Empty
attempt to receive a value has failed because the channel is empty
Disconnected
attempt to receive a value has failed because the channel is disconnected
Trait Implementations§
Source§impl Debug for TryRecvError
impl Debug for TryRecvError
Source§impl Display for TryRecvError
impl Display for TryRecvError
Source§impl Error for TryRecvError
impl Error for TryRecvError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TryRecvError> for Error
impl From<TryRecvError> for Error
Source§fn from(err: TryRecvError) -> Self
fn from(err: TryRecvError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TryRecvError
impl RefUnwindSafe for TryRecvError
impl Send for TryRecvError
impl Sync for TryRecvError
impl Unpin for TryRecvError
impl UnwindSafe for TryRecvError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more