pub enum CompositionError {
SubjectMismatch,
TemporalDisjoint,
ScopeOverflow,
DelegationCycle,
IssuerDuplicate,
AggregationTooFew,
MaskNonMonotonic,
MaskDisjointnessViolation,
UnauthorisedRevoker,
AlreadyRevoked,
Invariant(&'static str),
}Expand description
Errors arising during composition (operator application or validity check).
Variants§
SubjectMismatch
Conjunction §6.1 C-1: subjects differ and no linkage_proof was provided.
TemporalDisjoint
Conjunction §6.1 C-3: temporal windows do not intersect.
ScopeOverflow
Delegation §6.2 D-3: delegated scope exceeds parent scope.
DelegationCycle
Delegation §6.2: cycle detected in the delegation chain.
IssuerDuplicate
Aggregation §6.3 G-1: two operands share an issuer key.
AggregationTooFew
Aggregation §6.3: fewer than two operands.
MaskNonMonotonic
Restriction §6.4 R-1: new mask discloses fields not in the source mask.
MaskDisjointnessViolation
Restriction §6.4 M-1: disclosed and committed overlap in the new mask.
Revocation §6.5 V-1: revoker is neither the original issuer nor a delegated authority.
AlreadyRevoked
Revocation §6.5: temporal frame already marks the source revoked.
Invariant(&'static str)
Generic structural validity violation (catch-all for invariant checks).
Trait Implementations§
Source§impl Debug for CompositionError
impl Debug for CompositionError
Source§impl Display for CompositionError
impl Display for CompositionError
Source§impl Error for CompositionError
impl Error for CompositionError
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()
Source§impl PartialEq for CompositionError
impl PartialEq for CompositionError
Source§fn eq(&self, other: &CompositionError) -> bool
fn eq(&self, other: &CompositionError) -> bool
self and other values to be equal, and is used by ==.