pub enum EabError {
Malformed(&'static str),
BadSignature,
}Expand description
Why EAB verification failed, in the two buckets eab_problem renders as
HTTP status: a shape problem the client can fix by resending correctly
formed EAB (Malformed, 400), or a signature that plainly does not verify
against the looked-up secret (BadSignature, 401). An unknown or revoked
kid is not represented here at all: that decision needs the database, so
the caller (verify_eab in lib.rs) makes it directly.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EabError
impl RefUnwindSafe for EabError
impl Send for EabError
impl Sync for EabError
impl Unpin for EabError
impl UnsafeUnpin for EabError
impl UnwindSafe for EabError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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