pub enum PortableEncodingError {
TooLarge,
Truncated,
WrongDomain,
TrailingBytes,
InvalidShape,
AnonymousSubject,
Grants(GrantValidationError),
Canonical(CanonicalAuthError),
}Expand description
Structural codec errors, never proof-verification outcomes.
Variants§
TooLarge
Truncated
WrongDomain
TrailingBytes
InvalidShape
AnonymousSubject
Grants(GrantValidationError)
Canonical(CanonicalAuthError)
Trait Implementations§
Source§impl Debug for PortableEncodingError
impl Debug for PortableEncodingError
Source§impl Display for PortableEncodingError
impl Display for PortableEncodingError
impl Eq for PortableEncodingError
Source§impl Error for PortableEncodingError
impl Error for PortableEncodingError
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<CanonicalAuthError> for PortableEncodingError
impl From<CanonicalAuthError> for PortableEncodingError
Source§fn from(source: CanonicalAuthError) -> Self
fn from(source: CanonicalAuthError) -> Self
Converts to this type from the input type.
Source§impl From<GrantValidationError> for PortableEncodingError
impl From<GrantValidationError> for PortableEncodingError
Source§fn from(source: GrantValidationError) -> Self
fn from(source: GrantValidationError) -> Self
Converts to this type from the input type.
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 PortableEncodingError
impl PartialEq for PortableEncodingError
impl StructuralPartialEq for PortableEncodingError
Auto Trait Implementations§
impl Freeze for PortableEncodingError
impl RefUnwindSafe for PortableEncodingError
impl Send for PortableEncodingError
impl Sync for PortableEncodingError
impl Unpin for PortableEncodingError
impl UnsafeUnpin for PortableEncodingError
impl UnwindSafe for PortableEncodingError
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