pub enum PortableClaimsError {
Show 13 variants
InvalidContext,
AudienceMismatch,
IssuerMismatch,
MechanismMismatch,
KeyMismatch,
CallerMismatch,
GrantsExceeded,
InvalidWindow,
NotYetValid,
Expired,
BeforeReset,
StaleAuthority,
Encoding(PortableEncodingError),
}Expand description
Pure rejection of claims against protected context; success is not admission.
Variants§
InvalidContext
AudienceMismatch
IssuerMismatch
MechanismMismatch
KeyMismatch
CallerMismatch
GrantsExceeded
InvalidWindow
NotYetValid
Expired
BeforeReset
StaleAuthority
Encoding(PortableEncodingError)
Trait Implementations§
Source§impl Debug for PortableClaimsError
impl Debug for PortableClaimsError
Source§impl Display for PortableClaimsError
impl Display for PortableClaimsError
impl Eq for PortableClaimsError
Source§impl Error for PortableClaimsError
impl Error for PortableClaimsError
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()
Source§impl From<PortableEncodingError> for PortableClaimsError
impl From<PortableEncodingError> for PortableClaimsError
Source§fn from(source: PortableEncodingError) -> Self
fn from(source: PortableEncodingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PortableClaimsError
impl PartialEq for PortableClaimsError
impl StructuralPartialEq for PortableClaimsError
Auto Trait Implementations§
impl Freeze for PortableClaimsError
impl RefUnwindSafe for PortableClaimsError
impl Send for PortableClaimsError
impl Sync for PortableClaimsError
impl Unpin for PortableClaimsError
impl UnsafeUnpin for PortableClaimsError
impl UnwindSafe for PortableClaimsError
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