pub enum EnvelopeSealError {
Absent,
WireUndeclared(String),
Refused(AphError),
}Expand description
Why an envelope-level unseal can fail — three DIFFERENT kinds of failure with three different repairs, kept as distinct as the codes that carry two of them.
Variants§
Absent
The envelope carries no sealedPayload. Not a refusal: an unsealed
envelope is an ordinary envelope, and the caller decides whether it
expected one.
WireUndeclared(String)
The wire-version rule refused: sealedPayload on an aphVersion that
does not declare it. Strict-parse CLASS — a plain message below the
protocol’s code vocabulary, per the same reasoning as an
unrecognized closed-set value.
Refused(AphError)
A protocol refusal with its 0.2 code: APH_E021 (the seal
addressed to this verifier did not open) or APH_E022 (unknown
suite). Per RFC 0008 §4 the caller MUST refuse the ENVELOPE.
Trait Implementations§
Source§impl Debug for EnvelopeSealError
impl Debug for EnvelopeSealError
Source§impl Display for EnvelopeSealError
impl Display for EnvelopeSealError
Source§impl Error for EnvelopeSealError
impl Error for EnvelopeSealError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EnvelopeSealError
impl RefUnwindSafe for EnvelopeSealError
impl Send for EnvelopeSealError
impl Sync for EnvelopeSealError
impl Unpin for EnvelopeSealError
impl UnsafeUnpin for EnvelopeSealError
impl UnwindSafe for EnvelopeSealError
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