#[non_exhaustive]pub enum CheckpointError {
JournalTenantMismatch,
JournalRunMismatch,
JournalDidNotAdvance {
previous: JournalSequence,
actual: JournalSequence,
},
ClockRegression {
previous: Timestamp,
actual: Timestamp,
},
Integrity {
source: CheckpointIntegrityError,
},
DigestMismatch,
}Expand description
Invalid or corrupted committed checkpoint.
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.
JournalTenantMismatch
The journal head crossed a tenant boundary.
JournalRunMismatch
The journal head named another run.
JournalDidNotAdvance
The successor checkpoint did not include any newer journal fact.
Fields
§
previous: JournalSequenceParent checkpoint’s journal sequence.
§
actual: JournalSequenceRejected successor journal sequence.
ClockRegression
Durable journal time regressed across checkpoints.
Fields
Integrity
Integrity material could not be canonicalized.
Fields
§
source: CheckpointIntegrityErrorUnderlying integrity failure.
DigestMismatch
The persisted complete checksum did not match checkpoint fields.
Trait Implementations§
Source§impl Clone for CheckpointError
impl Clone for CheckpointError
Source§impl Debug for CheckpointError
impl Debug for CheckpointError
Source§impl Display for CheckpointError
impl Display for CheckpointError
impl Eq for CheckpointError
Source§impl Error for CheckpointError
impl Error for CheckpointError
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 CheckpointError
impl PartialEq for CheckpointError
impl StructuralPartialEq for CheckpointError
Auto Trait Implementations§
impl Forget for CheckpointError
impl Freeze for CheckpointError
impl Move for CheckpointError
impl RefUnwindSafe for CheckpointError
impl Send for CheckpointError
impl Sync for CheckpointError
impl Unpin for CheckpointError
impl UnsafeUnpin for CheckpointError
impl UnwindSafe for CheckpointError
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