pub enum Error {
Show 13 variants
Compression,
Decompression,
InconsistentSize,
StatusTooLarge(StatusBits, u8),
IndexOutOfBounds(usize, usize),
TokenSigningFailed,
TokenParsingFailed,
TokenSignatureVerificationFailed,
InvalidTokenHeaderTyp(String),
InvalidTokenIss(UriBuf, UriBuf),
InvalidTokenSub(UriBuf, UriBuf),
TokenExpired(u64, u64),
UnsuccessfulStatusFetch(UriBuf),
}Expand description
Error type defining possible Status List related errors.
Variants§
Compression
Error when compressing Status List.
Decompression
Error when decompressing Status List.
InconsistentSize
Error when Status List size is inconsistent with the internal representation.
StatusTooLarge(StatusBits, u8)
Error when the status doesn’t fit in the specified number of bits.
IndexOutOfBounds(usize, usize)
Error when the Status List index is out of bounds.
TokenSigningFailed
Error when token signing fails.
TokenParsingFailed
Error when token parsing fails.
TokenSignatureVerificationFailed
Error when token signature verification fails.
InvalidTokenHeaderTyp(String)
Error when the token header typ value is invalid.
InvalidTokenIss(UriBuf, UriBuf)
Error when the token iss value is invalid.
InvalidTokenSub(UriBuf, UriBuf)
Error when the token sub value is invalid.
TokenExpired(u64, u64)
Error when the token is expired.
UnsuccessfulStatusFetch(UriBuf)
Error when the Status List cannot be fetched from URL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<E> BhErrorAny for Ewhere
E: BhError,
impl<E> BhErrorAny for Ewhere
E: BhError,
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