Enum bonsaidb::core::circulate::flume::TryRecvError
pub enum TryRecvError {
Empty,
Disconnected,
}
Expand description
An error that may be emitted when attempting to fetch a value on a receiver when there are no
messages in the channel. If there are no messages in the channel and all senders are dropped,
then TryRecvError::Disconnected
will be returned.
Variants§
Empty
The channel was empty when the receive was attempted.
Disconnected
All senders were dropped and no messages are waiting in the channel, so no further messages can be received.
Trait Implementations§
§impl Clone for TryRecvError
impl Clone for TryRecvError
§fn clone(&self) -> TryRecvError
fn clone(&self) -> TryRecvError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TryRecvError
impl Debug for TryRecvError
§impl Display for TryRecvError
impl Display for TryRecvError
§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)>
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()
§impl From<RecvError> for TryRecvError
impl From<RecvError> for TryRecvError
§fn from(err: RecvError) -> TryRecvError
fn from(err: RecvError) -> TryRecvError
Converts to this type from the input type.
source§impl From<TryRecvError> for TryReceiveError
impl From<TryRecvError> for TryReceiveError
source§fn from(err: TryRecvError) -> TryReceiveError
fn from(err: TryRecvError) -> TryReceiveError
Converts to this type from the input type.
§impl PartialEq for TryRecvError
impl PartialEq for TryRecvError
§fn eq(&self, other: &TryRecvError) -> bool
fn eq(&self, other: &TryRecvError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TryRecvError
impl Eq for TryRecvError
impl StructuralEq for TryRecvError
impl StructuralPartialEq for TryRecvError
Auto Trait Implementations§
impl RefUnwindSafe for TryRecvError
impl Send for TryRecvError
impl Sync for TryRecvError
impl Unpin for TryRecvError
impl UnwindSafe for TryRecvError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.