pub enum PqPasetoError {
Show 13 variants
InvalidFormat(String),
SignatureVerificationFailed,
TokenExpired,
TokenNotYetValid,
InvalidAudience {
expected: String,
actual: String,
},
InvalidIssuer {
expected: String,
actual: String,
},
SerializationError(Error),
Base64Error(DecodeError),
TimeError(ComponentRange),
CryptoError(String),
EncryptionError(String),
DecryptionError(String),
TokenParsingError(String),
}Expand description
Errors that can occur during token operations
Variants§
InvalidFormat(String)
SignatureVerificationFailed
TokenExpired
TokenNotYetValid
InvalidAudience
InvalidIssuer
SerializationError(Error)
Base64Error(DecodeError)
TimeError(ComponentRange)
CryptoError(String)
EncryptionError(String)
DecryptionError(String)
TokenParsingError(String)
Trait Implementations§
Source§impl Debug for PqPasetoError
impl Debug for PqPasetoError
Source§impl Display for PqPasetoError
impl Display for PqPasetoError
Source§impl Error for PqPasetoError
impl Error for PqPasetoError
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<ComponentRange> for PqPasetoError
impl From<ComponentRange> for PqPasetoError
Source§fn from(source: ComponentRange) -> Self
fn from(source: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for PqPasetoError
impl From<DecodeError> for PqPasetoError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PqPasetoError
impl !RefUnwindSafe for PqPasetoError
impl Send for PqPasetoError
impl Sync for PqPasetoError
impl Unpin for PqPasetoError
impl !UnwindSafe for PqPasetoError
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