#[non_exhaustive]pub enum ProjectionError {
SequenceBackward {
last: u64,
incoming: u64,
},
SequenceGap {
last: u64,
incoming: u64,
},
NotActive {
state: ObserverState,
},
Storage(&'static str),
DecodeFailed(&'static str),
MissingRow,
}Expand description
Projection-side failure taxonomy.
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.
SequenceBackward
Event sequence moved backward (corruption or mis-routed dispatch).
Fields
SequenceGap
A sequence number was skipped — the replay harness needs to fetch the missing range before this projection can advance.
Fields
NotActive
Caller attempted a mutation in a non-Active state (observer is
Passive or Draining).
Fields
§
state: ObserverStateObserver state at the time of the attempted mutation.
Storage(&'static str)
Storage-layer error (in-memory corruption, PG driver, …).
DecodeFailed(&'static str)
Event payload failed to decode.
MissingRow
An event targeted an Actor / Space / Entry / Activity that the projection has no row for.
Trait Implementations§
Source§impl Debug for ProjectionError
impl Debug for ProjectionError
Source§impl Display for ProjectionError
impl Display for ProjectionError
Source§impl Error for ProjectionError
impl Error for ProjectionError
1.30.0 · 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 Freeze for ProjectionError
impl RefUnwindSafe for ProjectionError
impl Send for ProjectionError
impl Sync for ProjectionError
impl Unpin for ProjectionError
impl UnsafeUnpin for ProjectionError
impl UnwindSafe for ProjectionError
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