#[non_exhaustive]pub enum TryReceiveError {
Empty,
Closed,
Lagged {
skipped: u64,
},
Failed(NetError),
}Expand description
Non-blocking receive result describing empty, closed, lagged, or failed subscriptions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
No item is currently available.
Closed
The sender side or receiving endpoint has been closed.
Lagged
Receiver fell behind and skipped this many observations.
Failed(NetError)
Underlying subscription or engine failure.
Trait Implementations§
Source§impl Clone for TryReceiveError
impl Clone for TryReceiveError
Source§impl Debug for TryReceiveError
impl Debug for TryReceiveError
Source§impl Display for TryReceiveError
impl Display for TryReceiveError
Source§impl Error for TryReceiveError
impl Error for TryReceiveError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Auto Trait Implementations§
impl !RefUnwindSafe for TryReceiveError
impl !UnwindSafe for TryReceiveError
impl Forget for TryReceiveError
impl Freeze for TryReceiveError
impl Move for TryReceiveError
impl Send for TryReceiveError
impl Sync for TryReceiveError
impl Unpin for TryReceiveError
impl UnsafeUnpin for TryReceiveError
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