pub enum RejectReason {
Malformed,
NoSignature,
UnsupportedVersion,
BadSignature,
UnknownSigner,
Revoked,
Expired,
ClockSkew,
NameMismatch,
}Expand description
Why an Envelope failed verification — distinct, named causes so a consumer
or diagnose() can act on the specific failure (ADR-020 §13).
Variants§
Malformed
The envelope (or its base64 fields) could not be parsed.
NoSignature
A signature was required (Authenticated peer expected) but none was present.
UnsupportedVersion
The envelope version is not understood by this verifier.
BadSignature
The signature did not verify against the signer’s public key.
UnknownSigner
The signer’s CN is not a current member of the roster.
Revoked
The signer’s certificate has been revoked.
Expired
The signer’s certificate has expired.
ClockSkew
The timestamp is outside the freshness window by more than the allowed
clock-skew tolerance (distinct from Stale — this is a hard reject).
NameMismatch
The signature’s CN does not match the presented certificate.
Trait Implementations§
Source§impl Clone for RejectReason
impl Clone for RejectReason
Source§fn clone(&self) -> RejectReason
fn clone(&self) -> RejectReason
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 RejectReason
impl Debug for RejectReason
Source§impl<'de> Deserialize<'de> for RejectReason
impl<'de> Deserialize<'de> for RejectReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RejectReason
Source§impl PartialEq for RejectReason
impl PartialEq for RejectReason
Source§fn eq(&self, other: &RejectReason) -> bool
fn eq(&self, other: &RejectReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RejectReason
impl Serialize for RejectReason
impl StructuralPartialEq for RejectReason
Auto Trait Implementations§
impl Freeze for RejectReason
impl RefUnwindSafe for RejectReason
impl Send for RejectReason
impl Sync for RejectReason
impl Unpin for RejectReason
impl UnsafeUnpin for RejectReason
impl UnwindSafe for RejectReason
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.