#[non_exhaustive]pub enum JwtError {
InvalidIssuer {
issuer: String,
reason: String,
},
InvalidJwksUri {
uri: String,
reason: String,
},
EmptyAudience,
NoAlgorithms,
InvalidJwks(String),
InvalidTimeout,
Tls(String),
}Expand description
Invalid JwtVerifier settings.
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.
InvalidIssuer
The issuer is not a valid URL.
InvalidJwksUri
The JWKS URL is invalid.
EmptyAudience
The audience is empty.
NoAlgorithms
No algorithm is allowed.
InvalidJwks(String)
The static JWKS is invalid.
InvalidTimeout
The HTTP timeout is zero.
Tls(String)
The system’s TLS root certificates could not be loaded.
Implementations§
Trait Implementations§
impl Eq for JwtError
Source§impl Error for JwtError
impl Error for JwtError
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()
impl StructuralPartialEq for JwtError
Auto Trait Implementations§
impl Freeze for JwtError
impl RefUnwindSafe for JwtError
impl Send for JwtError
impl Sync for JwtError
impl Unpin for JwtError
impl UnsafeUnpin for JwtError
impl UnwindSafe for JwtError
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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<E> IntoToolError for E
impl<E> IntoToolError for E
Source§fn into_tool_error(self) -> ToolError
fn into_tool_error(self) -> ToolError
Performs the conversion.