Enum rustmacaroon::VerificationError
source · pub enum VerificationError<C>where
C: Caveat,{
CaveatFailed(C::Error),
InvalidToken,
}Expand description
Encodes a failure to verify a token.
Variants§
CaveatFailed(C::Error)
The token is properly signed, but one of the caveats forbids the attempted action.
InvalidToken
The token is either not valid as a whole or has an incorrect or forged signature.
Trait Implementations§
source§impl<C> Clone for VerificationError<C>
impl<C> Clone for VerificationError<C>
source§fn clone(&self) -> VerificationError<C>
fn clone(&self) -> VerificationError<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<C> Debug for VerificationError<C>
impl<C> Debug for VerificationError<C>
source§impl<C> Display for VerificationError<C>where
C: Caveat,
impl<C> Display for VerificationError<C>where
C: Caveat,
source§impl<C> Error for VerificationError<C>
impl<C> Error for VerificationError<C>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<C> PartialEq for VerificationError<C>
impl<C> PartialEq for VerificationError<C>
source§fn eq(&self, other: &VerificationError<C>) -> bool
fn eq(&self, other: &VerificationError<C>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<C> StructuralPartialEq for VerificationError<C>where
C: Caveat,
Auto Trait Implementations§
impl<C> RefUnwindSafe for VerificationError<C>
impl<C> Send for VerificationError<C>
impl<C> Sync for VerificationError<C>
impl<C> Unpin for VerificationError<C>
impl<C> UnwindSafe for VerificationError<C>
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