pub enum AvcError {
Serialization {
reason: String,
},
EmptyField {
field: &'static str,
},
UnsupportedSchema {
got: u16,
supported: u16,
},
UnsupportedProtocol {
got: u16,
min_supported: u16,
max_supported: u16,
},
BasisPointOutOfRange {
field: &'static str,
value: u32,
},
InvalidTimestamp {
reason: String,
},
DelegationWidens {
dimension: &'static str,
},
DelegationRejected {
reason: String,
},
Registry {
reason: String,
},
InvalidInput {
reason: String,
},
}Expand description
Errors arising from AVC operations.
Every variant carries enough context to diagnose the failure without
access to the source code. Validation denials are not errors — they
flow through AvcDecision::Deny with reason codes. Errors here cover
structural, cryptographic, and registry failures.
Variants§
Serialization
Canonical CBOR encoding for an AVC payload failed.
EmptyField
Required string field was empty after trimming.
UnsupportedSchema
Schema version is not supported by this binary.
UnsupportedProtocol
Protocol version is outside the supported compatibility range.
BasisPointOutOfRange
A basis point value was outside the legal 0..=10_000 range.
InvalidTimestamp
A timestamp invariant was violated (e.g. expired-on-issue).
DelegationWidens
Delegation widened scope of any kind.
DelegationRejected
Delegation chain was rejected for a non-widening structural reason.
Registry
Registry write conflict (e.g. duplicate revocation or unknown key).
InvalidInput
Invalid input was supplied to a public function.
Trait Implementations§
impl Eq for AvcError
Source§impl Error for AvcError
impl Error for AvcError
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()