pub struct JwtVerificationError { /* private fields */ }Expand description
An error encountered during offline JWT verification.
Use Self::kind to classify the failure. This wrapper is transparent.
Formatting it formats the underlying verification error, and
std::error::Error::source returns that error’s source. The underlying
error type is not part of this crate’s public API and may change between
releases.
Implementations§
Source§impl JwtVerificationError
impl JwtVerificationError
Sourcepub fn kind(&self) -> JwtVerificationErrorKind
pub fn kind(&self) -> JwtVerificationErrorKind
Returns the kind of verification failure.
Trait Implementations§
Source§impl Debug for JwtVerificationError
impl Debug for JwtVerificationError
Source§impl Display for JwtVerificationError
impl Display for JwtVerificationError
Source§impl Error for JwtVerificationError
impl Error for JwtVerificationError
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 !RefUnwindSafe for JwtVerificationError
impl !UnwindSafe for JwtVerificationError
impl Freeze for JwtVerificationError
impl Send for JwtVerificationError
impl Sync for JwtVerificationError
impl Unpin for JwtVerificationError
impl UnsafeUnpin for JwtVerificationError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request