Enum bonsaidb::core::circulate::flume::RecvTimeoutError
pub enum RecvTimeoutError {
Timeout,
Disconnected,
}
Expand description
An error that may be emitted when attempting to wait for a value on a receiver with a timeout when the receive operation times out or all senders are dropped and there are no values left in the channel.
Variants§
Timeout
A timeout occurred when attempting to receive a message.
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 RecvTimeoutError
impl Clone for RecvTimeoutError
§fn clone(&self) -> RecvTimeoutError
fn clone(&self) -> RecvTimeoutError
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 RecvTimeoutError
impl Debug for RecvTimeoutError
§impl Display for RecvTimeoutError
impl Display for RecvTimeoutError
§impl Error for RecvTimeoutError
impl Error for RecvTimeoutError
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 RecvTimeoutError
impl From<RecvError> for RecvTimeoutError
§fn from(err: RecvError) -> RecvTimeoutError
fn from(err: RecvError) -> RecvTimeoutError
Converts to this type from the input type.
source§impl From<RecvTimeoutError> for Error
impl From<RecvTimeoutError> for Error
source§fn from(err: RecvTimeoutError) -> Error
fn from(err: RecvTimeoutError) -> Error
Converts to this type from the input type.
§impl PartialEq for RecvTimeoutError
impl PartialEq for RecvTimeoutError
§fn eq(&self, other: &RecvTimeoutError) -> bool
fn eq(&self, other: &RecvTimeoutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RecvTimeoutError
impl Eq for RecvTimeoutError
impl StructuralEq for RecvTimeoutError
impl StructuralPartialEq for RecvTimeoutError
Auto Trait Implementations§
impl RefUnwindSafe for RecvTimeoutError
impl Send for RecvTimeoutError
impl Sync for RecvTimeoutError
impl Unpin for RecvTimeoutError
impl UnwindSafe for RecvTimeoutError
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.