pub enum JwtCodecError {
InvalidFormat,
Base64Error(DecodeError),
JsonError(Error),
InvalidSignature,
InvalidAlgorithm,
KeyError,
}Expand description
JWT 编解码错误
Variants§
InvalidFormat
无效的令牌格式
Base64Error(DecodeError)
Base64 解码失败
JsonError(Error)
JSON 序列化/反序列化失败
InvalidSignature
无效的签名
InvalidAlgorithm
无效的算法
KeyError
密钥错误
Trait Implementations§
Source§impl Debug for JwtCodecError
impl Debug for JwtCodecError
Source§impl Display for JwtCodecError
impl Display for JwtCodecError
Source§impl Error for JwtCodecError
impl Error for JwtCodecError
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<DecodeError> for JwtCodecError
impl From<DecodeError> for JwtCodecError
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for JwtCodecError
impl From<Error> for JwtCodecError
Source§impl From<JwtCodecError> for WaeError
impl From<JwtCodecError> for WaeError
Source§fn from(err: JwtCodecError) -> Self
fn from(err: JwtCodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JwtCodecError
impl !RefUnwindSafe for JwtCodecError
impl Send for JwtCodecError
impl Sync for JwtCodecError
impl Unpin for JwtCodecError
impl UnsafeUnpin for JwtCodecError
impl !UnwindSafe for JwtCodecError
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