#[non_exhaustive]pub enum JournalEventError {
SequenceOverflow,
ClockRegression {
previous: Timestamp,
actual: Timestamp,
},
UnexpectedPreviousDigest,
MissingPreviousDigest,
PayloadDigestMismatch,
IntentDigestMismatch,
EventDigestMismatch,
Intent {
source: JournalIntentError,
},
Integrity {
source: JournalIntegrityError,
},
}Expand description
Intrinsically invalid journal event or append materialization.
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.
SequenceOverflow
No contiguous PostgreSQL sequence remains.
ClockRegression
The database clock observation preceded the committed head.
Fields
UnexpectedPreviousDigest
The first sequence improperly named a predecessor.
MissingPreviousDigest
A non-first sequence omitted its predecessor checksum.
PayloadDigestMismatch
The serialized payload checksum did not match canonical bytes.
IntentDigestMismatch
The serialized intent checksum did not match event identity and content.
EventDigestMismatch
The serialized event checksum did not match the record.
Intent
Worker source scope was invalid.
Fields
§
source: JournalIntentErrorUnderlying source-scope failure.
Integrity
A small typed checksum preimage could not be canonicalized.
Fields
§
source: JournalIntegrityErrorUnderlying integrity failure.
Trait Implementations§
Source§impl Clone for JournalEventError
impl Clone for JournalEventError
Source§impl Debug for JournalEventError
impl Debug for JournalEventError
Source§impl Display for JournalEventError
impl Display for JournalEventError
impl Eq for JournalEventError
Source§impl Error for JournalEventError
impl Error for JournalEventError
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()
Source§impl PartialEq for JournalEventError
impl PartialEq for JournalEventError
impl StructuralPartialEq for JournalEventError
Auto Trait Implementations§
impl Forget for JournalEventError
impl Freeze for JournalEventError
impl Move for JournalEventError
impl RefUnwindSafe for JournalEventError
impl Send for JournalEventError
impl Sync for JournalEventError
impl Unpin for JournalEventError
impl UnsafeUnpin for JournalEventError
impl UnwindSafe for JournalEventError
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