pub enum WanCheckFailure {
EnvelopeMismatch,
Stale,
CertInvalid,
RecordMismatch,
BadSignature,
}Expand description
Why a carried signature did not verify. Each maps to the §2.3 verdict the
caller records; the ones that are None there are “couldn’t check”,
never a forgery signal.
Variants§
EnvelopeMismatch
The carried source or target isn’t the one actually delivered →
Some(false).
Stale
Outside the freshness window → None, audit wan_sig_stale.
CertInvalid
The directory record’s chain is broken → Some(false), audit
wan_cert_invalid. Only a tampering cloud or a bug produces this.
RecordMismatch
The record is for a different instance, channel, agent or key than
the carried one → Some(false).
BadSignature
The message signature doesn’t verify under the certified key →
Some(false).
Implementations§
Trait Implementations§
Source§impl Clone for WanCheckFailure
impl Clone for WanCheckFailure
Source§fn clone(&self) -> WanCheckFailure
fn clone(&self) -> WanCheckFailure
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 moreimpl Copy for WanCheckFailure
Source§impl Debug for WanCheckFailure
impl Debug for WanCheckFailure
impl Eq for WanCheckFailure
Source§impl PartialEq for WanCheckFailure
impl PartialEq for WanCheckFailure
impl StructuralPartialEq for WanCheckFailure
Auto Trait Implementations§
impl Freeze for WanCheckFailure
impl RefUnwindSafe for WanCheckFailure
impl Send for WanCheckFailure
impl Sync for WanCheckFailure
impl Unpin for WanCheckFailure
impl UnsafeUnpin for WanCheckFailure
impl UnwindSafe for WanCheckFailure
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