pub enum AccessError {
Show 20 variants
Truncated,
TrailingBytes,
UnsupportedVersion(u16),
WrongObjectType,
InvalidIdentifier,
InvalidUtf8,
LengthLimit(usize),
InvalidEpoch,
InvalidKeyIdentity,
NonCanonicalEncoding,
DuplicateRule,
InvalidSignature,
UntrustedIssuer,
SubjectMismatch,
NotYetValid,
Expired,
StaleRevision,
Revoked,
InvalidPermissions,
CryptographicFailure,
}Expand description
A structural, trust, policy, or cryptographic access failure.
Variants§
Truncated
The input ended before the object did.
TrailingBytes
The object has bytes after its canonical end.
UnsupportedVersion(u16)
The object uses an unsupported version.
WrongObjectType
The encoded object tag does not match the requested type.
InvalidIdentifier
An identifier is empty or exceeds the configured bound.
InvalidUtf8
An encoded identifier is not UTF-8.
LengthLimit(usize)
A length exceeds the configured bound.
InvalidEpoch
An epoch or monotonic revision is zero or otherwise invalid.
InvalidKeyIdentity
A key does not match its domain-separated identifier or is unusable.
NonCanonicalEncoding
Re-encoding did not reproduce the original bytes.
DuplicateRule
A capability kind/name pair appears more than once.
InvalidSignature
A signature is malformed or does not verify.
UntrustedIssuer
The object was not issued by the caller’s pinned issuer.
SubjectMismatch
The object belongs to a different tenant, subject, or scope.
NotYetValid
The signed object is not active yet.
Expired
The signed object has expired.
StaleRevision
A monotonic policy or revocation revision is below the required floor.
Revoked
An authorization or key epoch has been revoked.
InvalidPermissions
A grant contains no permissions or unknown permission bits.
CryptographicFailure
HPKE sealing or opening failed without exposing a decryption oracle.
Trait Implementations§
Source§impl Clone for AccessError
impl Clone for AccessError
Source§fn clone(&self) -> AccessError
fn clone(&self) -> AccessError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessError
impl Debug for AccessError
Source§impl Display for AccessError
impl Display for AccessError
impl Eq for AccessError
Source§impl Error for AccessError
impl Error for AccessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()