pub enum QVError {
Show 14 variants
InvalidMagic,
UnsupportedVersion(u16),
UnknownSuite(u8),
Expired {
issued_at: u64,
ttl: u32,
},
NotYetValid,
SignatureInvalid,
DecryptionFailed,
BufferTooShort {
need: usize,
have: usize,
},
ReplayDetected {
token: u64,
chain: u64,
},
LowEntropy(f64),
NonceReuse,
KeyGenFailed,
SerializationError(String),
MissingClaim(String),
}Variants§
InvalidMagic
UnsupportedVersion(u16)
UnknownSuite(u8)
Expired
NotYetValid
SignatureInvalid
DecryptionFailed
BufferTooShort
ReplayDetected
LowEntropy(f64)
NonceReuse
KeyGenFailed
SerializationError(String)
MissingClaim(String)
Trait Implementations§
Source§impl Error for QVError
impl Error for QVError
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()
Auto Trait Implementations§
impl Freeze for QVError
impl RefUnwindSafe for QVError
impl Send for QVError
impl Sync for QVError
impl Unpin for QVError
impl UnsafeUnpin for QVError
impl UnwindSafe for QVError
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