pub enum ClaimFault {
Expired,
NotYetValid,
IssuedInFuture,
NotInAudience,
Unparsable,
NotANumber(&'static str),
AudienceNotStrings,
}Expand description
What was wrong with a token’s claims.
Separate from the failures above because a token whose claims are wrong was read successfully: the signature verified, the server has the right key, and what remains is a disagreement about the claims themselves. A client that cannot tell those apart cannot tell “rotate your key” from “your clock is wrong”.
Variants§
Expired
NotYetValid
IssuedInFuture
NotInAudience
Unparsable
NotANumber(&'static str)
A timestamp claim that is present and is not a timestamp.
AudienceNotStrings
Trait Implementations§
Source§impl Clone for ClaimFault
impl Clone for ClaimFault
Source§fn clone(&self) -> ClaimFault
fn clone(&self) -> ClaimFault
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClaimFault
Source§impl Debug for ClaimFault
impl Debug for ClaimFault
Source§impl Display for ClaimFault
impl Display for ClaimFault
impl Eq for ClaimFault
Source§impl Error for ClaimFault
impl Error for ClaimFault
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()
Source§impl From<ClaimFault> for JwtError
impl From<ClaimFault> for JwtError
Source§fn from(source: ClaimFault) -> Self
fn from(source: ClaimFault) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClaimFault
impl PartialEq for ClaimFault
impl StructuralPartialEq for ClaimFault
Auto Trait Implementations§
impl Freeze for ClaimFault
impl RefUnwindSafe for ClaimFault
impl Send for ClaimFault
impl Sync for ClaimFault
impl Unpin for ClaimFault
impl UnsafeUnpin for ClaimFault
impl UnwindSafe for ClaimFault
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