pub enum TrustError {
MalformedSignature(&'static str),
SignatureMismatch,
InvalidKey(String),
ExchangeFailed(String),
UnsupportedProof(String),
}Variants§
MalformedSignature(&'static str)
Signature length didn’t match the proof’s expected size.
SignatureMismatch
Constant-time comparison returned mismatch.
InvalidKey(String)
Key could not be decoded (e.g. Ed25519 key not 32 bytes).
ExchangeFailed(String)
OAuth2 HTTP exchange or JWT fetch returned a 4xx/5xx or malformed JSON body.
UnsupportedProof(String)
The proof is known to the catalogue but the specific invocation is unsupported (e.g. verifying JWT with alg=none — the 10.e verifier rejects that, and we surface the error uniformly).
Trait Implementations§
Source§impl Debug for TrustError
impl Debug for TrustError
Source§impl Display for TrustError
impl Display for TrustError
Source§impl Error for TrustError
impl Error for TrustError
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 TrustError
impl RefUnwindSafe for TrustError
impl Send for TrustError
impl Sync for TrustError
impl Unpin for TrustError
impl UnsafeUnpin for TrustError
impl UnwindSafe for TrustError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.