#[non_exhaustive]pub enum SubscriptionRecvError {
Closed,
Lagged {
skipped: u64,
},
}Expand description
Error returned by EngineSubscription::recv.
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.
Closed
The engine is shutting down or the broadcast channel was closed.
Terminal — subsequent recv calls keep returning Closed.
Lagged
The broadcast ring buffer overflowed and skipped events were lost.
Recoverable: the next recv resumes with fresh live events.
Trait Implementations§
Source§impl Clone for SubscriptionRecvError
impl Clone for SubscriptionRecvError
Source§fn clone(&self) -> SubscriptionRecvError
fn clone(&self) -> SubscriptionRecvError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubscriptionRecvError
Source§impl Debug for SubscriptionRecvError
impl Debug for SubscriptionRecvError
impl Eq for SubscriptionRecvError
Source§impl PartialEq for SubscriptionRecvError
impl PartialEq for SubscriptionRecvError
Source§fn eq(&self, other: &SubscriptionRecvError) -> bool
fn eq(&self, other: &SubscriptionRecvError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscriptionRecvError
Auto Trait Implementations§
impl Freeze for SubscriptionRecvError
impl RefUnwindSafe for SubscriptionRecvError
impl Send for SubscriptionRecvError
impl Sync for SubscriptionRecvError
impl Unpin for SubscriptionRecvError
impl UnsafeUnpin for SubscriptionRecvError
impl UnwindSafe for SubscriptionRecvError
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