pub enum TokenError {
}Expand description
Why a token or a proof is refused. Says what, never the token.
Variants§
Malformed(String)
Algorithm(String)
alg not EdDSA, or a key of another kind.
Type(String)
typ not the one expected.
UnknownKey(String)
kid names no key the verifier trusts.
Signature
Audience
aud is another’s.
Expired
NotYet
iat in the future, past the skew.
Lifetime(u64)
exp − iat past MAX_LIFETIME.
Replayed
Binding(String)
Presented for another call or method than it names.
Proof(String)
A proof of possession missing or wrong.
Scope(String)
A scope that is not within the one it must be.
Refused(String)
The issuer refuses to mint (revoked, no caller).
Trait Implementations§
Source§impl Clone for TokenError
impl Clone for TokenError
Source§impl Debug for TokenError
impl Debug for TokenError
Source§impl Display for TokenError
impl Display for TokenError
impl Eq for TokenError
Source§impl Error for TokenError
impl Error for TokenError
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 PartialEq for TokenError
impl PartialEq for TokenError
impl StructuralPartialEq for TokenError
Auto Trait Implementations§
impl Forget for TokenError
impl Freeze for TokenError
impl Move for TokenError
impl RefUnwindSafe for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl UnsafeUnpin for TokenError
impl UnwindSafe for TokenError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.