#[non_exhaustive]pub enum IntegrityFailure {
BadSignature(&'static str),
KeyMismatch(&'static str),
BindingMismatch(&'static str),
VersionRollback {
known: u64,
got: u64,
},
GenerationRollback {
known: u32,
got: u32,
},
AuditMismatch,
}Expand description
A protocol verification failure: what the server served does not verify.
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.
BadSignature(&'static str)
A descriptor, bundle, record or children signature does not verify.
KeyMismatch(&'static str)
A key or identity does not match the pinned vault.
BindingMismatch(&'static str)
A signed or encrypted binding disagrees with what the server reported.
VersionRollback
The server showed an older record version than this client saw.
GenerationRollback
The server showed an older or different generation than this client saw.
AuditMismatch
The audit chain does not continue the known head.
Implementations§
Trait Implementations§
Source§impl Clone for IntegrityFailure
impl Clone for IntegrityFailure
impl Copy for IntegrityFailure
Source§impl Debug for IntegrityFailure
impl Debug for IntegrityFailure
impl Eq for IntegrityFailure
Source§impl From<&IntegrityError> for IntegrityFailure
impl From<&IntegrityError> for IntegrityFailure
Source§fn from(e: &IntegrityError) -> IntegrityFailure
fn from(e: &IntegrityError) -> IntegrityFailure
Converts to this type from the input type.
Source§impl PartialEq for IntegrityFailure
impl PartialEq for IntegrityFailure
impl StructuralPartialEq for IntegrityFailure
Auto Trait Implementations§
impl Freeze for IntegrityFailure
impl RefUnwindSafe for IntegrityFailure
impl Send for IntegrityFailure
impl Sync for IntegrityFailure
impl Unpin for IntegrityFailure
impl UnsafeUnpin for IntegrityFailure
impl UnwindSafe for IntegrityFailure
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§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.