#[non_exhaustive]pub enum ErrorScope {
Read,
Reclaim,
AckFlush,
Drop,
HandlerPanic,
}Expand description
Where in the bus runtime an error was raised.
#[non_exhaustive] lets us add new sources without breaking observers.
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.
Read
XREADGROUP (or backend equivalent) failed; the consume loop will
back off and retry.
Reclaim
The reclaim task failed to fetch idle pending entries; the task will back off and retry.
AckFlush
A batched ack flush to the backend failed. The waiters got the error via their oneshot channels; this hook fires once for the whole batch.
Drop
Subscription was dropped without close() having been called. Fired
at most once from the Drop impl on StreamSubscription.
HandlerPanic
A delivery task panicked. The panic message is delivered to
ErrorObserver::on_panic; this scope tags any associated
on_error invocation.
Trait Implementations§
Source§impl Clone for ErrorScope
impl Clone for ErrorScope
Source§fn clone(&self) -> ErrorScope
fn clone(&self) -> ErrorScope
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 ErrorScope
Source§impl Debug for ErrorScope
impl Debug for ErrorScope
impl Eq for ErrorScope
Source§impl Hash for ErrorScope
impl Hash for ErrorScope
Source§impl PartialEq for ErrorScope
impl PartialEq for ErrorScope
Source§fn eq(&self, other: &ErrorScope) -> bool
fn eq(&self, other: &ErrorScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ErrorScope
Auto Trait Implementations§
impl Freeze for ErrorScope
impl RefUnwindSafe for ErrorScope
impl Send for ErrorScope
impl Sync for ErrorScope
impl Unpin for ErrorScope
impl UnsafeUnpin for ErrorScope
impl UnwindSafe for ErrorScope
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