Enum picky::jose::jwt::JwtError [−][src]
#[non_exhaustive] pub enum JwtError { Jws { source: JwsError, }, Jwe { source: JweError, }, Json { source: Error, }, InvalidRegisteredClaimType { claim: &'static str, }, RequiredClaimMissing { claim: &'static str, }, NotYetValid { not_before: i64, now: JwtDate, }, Expired { not_after: i64, now: JwtDate, }, InvalidValidator { description: &'static str, }, }
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.
JWS error
Show fields
Fields of Jws
source: JwsError
JWE error
Show fields
Fields of Jwe
source: JweError
Json error
Show fields
Fields of Json
source: Error
registered claim type is invalid
Show fields
Fields of InvalidRegisteredClaimType
claim: &'static str
a required claim is missing
Show fields
Fields of RequiredClaimMissing
claim: &'static str
token not yet valid
token expired
validator is invalid
Show fields
Fields of InvalidValidator
description: &'static str
Trait Implementations
impl Error for JwtError
[src]
impl Error for JwtError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for JwtError
impl Send for JwtError
impl Sync for JwtError
impl Unpin for JwtError
impl !UnwindSafe for JwtError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,