#[non_exhaustive]pub enum Rejection {
FingerprintMissing,
FingerprintMismatch,
IntegrityMissing,
IntegrityMismatch,
UnknownAttributes(Vec<AttrType>),
Crypto(String),
}Expand description
Why a received message was not accepted.
RFC 8489 section 6.3: a message that fails the basic checks is silently discarded. The one
case that has an answer is UnknownAttributes in a request,
which is answered 420 (unknown_attributes_response).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FingerprintMissing
FINGERPRINT is required by the usage and the message has none.
FingerprintMismatch
FINGERPRINT has the wrong value or length, or is not the last attribute.
IntegrityMissing
The message has no integrity attribute, or not the one that was asked for.
IntegrityMismatch
The integrity attribute does not match the message and key, or is shorter than the usage allows.
UnknownAttributes(Vec<AttrType>)
The message has comprehension-required attributes the usage does not know, ahead of its integrity attribute. They are listed in the order they appear.
Crypto(String)
The crypto provider failed.
Trait Implementations§
impl Eq for Rejection
Source§impl Error for Rejection
impl Error for Rejection
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()