#[non_exhaustive]pub enum AitpError {
Envelope(String),
Identity(String),
Manifest(String),
Tct(String),
Delegation(String),
Crypto(String),
Other(String),
}Expand description
Top-level error type for AITP operations.
Each variant maps to one or more wire-level ErrorCode values.
Protocol-specific crates have their own narrower error types
(e.g. TctError, ManifestError) that flatten into this with
From impls.
Marked #[non_exhaustive] so future error categories can be added
without a semver-major bump. Downstream matches must include a
fall-through arm.
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.
Envelope(String)
Replay-protection or envelope-level rejection.
Identity(String)
Identity proof was invalid (OIDC, pinned key, etc.).
Manifest(String)
Manifest-level error (signature, PoP, expiry).
Tct(String)
TCT-level error (signature, audience, expiry, grants).
Delegation(String)
Delegation-token error.
Crypto(String)
Cryptographic failure (signature, key parsing).
Other(String)
Other / catch-all.
Trait Implementations§
Source§impl Error for AitpError
impl Error for AitpError
1.30.0 · 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 AitpError
impl RefUnwindSafe for AitpError
impl Send for AitpError
impl Sync for AitpError
impl Unpin for AitpError
impl UnsafeUnpin for AitpError
impl UnwindSafe for AitpError
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