Error

Enum Error 

Source
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§

Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl BhError for Error

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<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<E> BhErrorAny for E
where E: BhError,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Return self as Any type.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V