pub enum CheckpointBreak {
BadSignature {
index: usize,
checkpoint_id: Uuid,
},
BrokenLink {
index: usize,
checkpoint_id: Uuid,
},
CountWentBackwards {
index: usize,
checkpoint_id: Uuid,
previous: u64,
claimed: u64,
},
}Expand description
Why a checkpoint chain failed to verify.
Variants§
BadSignature
The signature does not verify under the resolved public key. The
checkpoint was forged, altered, or signed by a different key than
verification_method names.
BrokenLink
prev_checkpoint does not point at the previous checkpoint’s
link_hash — a checkpoint was reordered, dropped, or inserted.
CountWentBackwards
entry_count went backwards. The audit log only grows, so a later
checkpoint claiming fewer entries than an earlier one is a forgery or
a replay of an older checkpoint under a later timestamp.
Trait Implementations§
Source§impl Clone for CheckpointBreak
impl Clone for CheckpointBreak
Source§fn clone(&self) -> CheckpointBreak
fn clone(&self) -> CheckpointBreak
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointBreak
impl Debug for CheckpointBreak
impl Eq for CheckpointBreak
Source§impl PartialEq for CheckpointBreak
impl PartialEq for CheckpointBreak
impl StructuralPartialEq for CheckpointBreak
Auto Trait Implementations§
impl Freeze for CheckpointBreak
impl RefUnwindSafe for CheckpointBreak
impl Send for CheckpointBreak
impl Sync for CheckpointBreak
impl Unpin for CheckpointBreak
impl UnsafeUnpin for CheckpointBreak
impl UnwindSafe for CheckpointBreak
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.