pub enum AuditLogError {
SequenceGap {
expected: u64,
got: u64,
},
HashChainBroken {
at_seq: u64,
},
}Expand description
Error returned by AuditLog::push when an appended entry violates
the log’s monotonicity or hash-chain invariants.
Variants§
SequenceGap
The entry’s seq did not equal the log’s expected next sequence number.
Fields
HashChainBroken
The entry’s previous_hash did not match the entry_hash of the
last entry in the log (or the genesis zero-hash for the first entry).
Trait Implementations§
Source§impl Clone for AuditLogError
impl Clone for AuditLogError
Source§fn clone(&self) -> AuditLogError
fn clone(&self) -> AuditLogError
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 AuditLogError
impl Debug for AuditLogError
Source§impl Display for AuditLogError
impl Display for AuditLogError
impl Eq for AuditLogError
Source§impl PartialEq for AuditLogError
impl PartialEq for AuditLogError
Source§fn eq(&self, other: &AuditLogError) -> bool
fn eq(&self, other: &AuditLogError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuditLogError
Auto Trait Implementations§
impl Freeze for AuditLogError
impl RefUnwindSafe for AuditLogError
impl Send for AuditLogError
impl Sync for AuditLogError
impl Unpin for AuditLogError
impl UnsafeUnpin for AuditLogError
impl UnwindSafe for AuditLogError
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
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§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.