#[non_exhaustive]pub enum JournalChainError {
Event {
source: JournalEventError,
},
FirstSequence {
actual: JournalSequence,
},
TenantMismatch,
RunMismatch,
SequenceOverflow,
SequenceGap {
expected: JournalSequence,
actual: JournalSequence,
},
PreviousDigestMismatch,
ClockRegression {
previous: Timestamp,
actual: Timestamp,
},
}Expand description
Rejected event in streaming journal-chain verification.
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.
Event
An event failed its own checksum or structural validation.
Fields
§
source: JournalEventErrorUnderlying event failure.
FirstSequence
A complete journal did not start at sequence one.
Fields
§
actual: JournalSequenceRejected first sequence.
TenantMismatch
The event crossed a tenant boundary.
RunMismatch
The event named a different run.
SequenceOverflow
The current verified head has no representable successor.
SequenceGap
The event was not the exact contiguous successor.
Fields
§
expected: JournalSequenceExact required successor.
§
actual: JournalSequenceRejected sequence.
PreviousDigestMismatch
The event did not chain to the accepted head checksum.
ClockRegression
Durable time regressed across the chain.
Trait Implementations§
Source§impl Clone for JournalChainError
impl Clone for JournalChainError
Source§impl Debug for JournalChainError
impl Debug for JournalChainError
Source§impl Display for JournalChainError
impl Display for JournalChainError
impl Eq for JournalChainError
Source§impl Error for JournalChainError
impl Error for JournalChainError
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 JournalChainError
impl PartialEq for JournalChainError
impl StructuralPartialEq for JournalChainError
Auto Trait Implementations§
impl Forget for JournalChainError
impl Freeze for JournalChainError
impl Move for JournalChainError
impl RefUnwindSafe for JournalChainError
impl Send for JournalChainError
impl Sync for JournalChainError
impl Unpin for JournalChainError
impl UnsafeUnpin for JournalChainError
impl UnwindSafe for JournalChainError
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