pub enum SubscriptionError<StoreError>where
StoreError: Error + 'static,{
Store(StoreError),
EventDecode(EventDecodeError<StoreError>),
CatchupInterrupted,
TaskPanicked,
}Expand description
Errors that can occur during subscription lifecycle.
Variants§
Store(StoreError)
The event store returned an error.
EventDecode(EventDecodeError<StoreError>)
An event could not be decoded.
CatchupInterrupted
The subscription ended before completing catch-up.
TaskPanicked
The subscription task panicked.
Trait Implementations§
Source§impl<StoreError> Debug for SubscriptionError<StoreError>
impl<StoreError> Debug for SubscriptionError<StoreError>
Source§impl<StoreError> Display for SubscriptionError<StoreError>
impl<StoreError> Display for SubscriptionError<StoreError>
Source§impl<StoreError> Error for SubscriptionError<StoreError>where
StoreError: Error + 'static,
EventDecodeError<StoreError>: Error + 'static,
SubscriptionError<StoreError>: Debug + Display,
impl<StoreError> Error for SubscriptionError<StoreError>where
StoreError: Error + 'static,
EventDecodeError<StoreError>: Error + 'static,
SubscriptionError<StoreError>: Debug + Display,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + '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<StoreError> Freeze for SubscriptionError<StoreError>where
StoreError: Freeze,
impl<StoreError> RefUnwindSafe for SubscriptionError<StoreError>where
StoreError: RefUnwindSafe,
impl<StoreError> Send for SubscriptionError<StoreError>where
StoreError: Send,
impl<StoreError> Sync for SubscriptionError<StoreError>where
StoreError: Sync,
impl<StoreError> Unpin for SubscriptionError<StoreError>where
StoreError: Unpin,
impl<StoreError> UnwindSafe for SubscriptionError<StoreError>where
StoreError: UnwindSafe,
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