pub enum ProjectionError {
Show 16 variants
InvalidIdentifier(&'static str),
DuplicateFact(FactId),
MissingFact(FactId),
UnknownProvider(ProjectionKindRef),
DuplicateProvider(ProjectionKindRef),
ConfigShapeMismatch,
InvalidConfig(String),
InvalidPathSelection(String),
CodeIdentityMismatch,
UnqualifiedProjector(String),
UnavailableConfinement(String),
UndeclaredAccess {
accessed: FactId,
},
UnreadDependency(FactId),
BudgetExceeded(&'static str),
Canonical(String),
MissingExplanation {
conclusion: ConclusionId,
fact: FactId,
},
}Expand description
Fail-closed projection refusal with distinct policy boundaries.
Variants§
InvalidIdentifier(&'static str)
An identifier was empty.
DuplicateFact(FactId)
A world declared the same fact twice.
MissingFact(FactId)
A selected fact was absent.
UnknownProvider(ProjectionKindRef)
No loaded provider owns the requested open kind.
DuplicateProvider(ProjectionKindRef)
More than one loaded provider claimed the same kind.
ConfigShapeMismatch
Loaded provider and requested config Shape disagree.
InvalidConfig(String)
Configuration did not satisfy its declared Shape.
InvalidPathSelection(String)
A path selector or logical path was not canonical or valid.
CodeIdentityMismatch
Provider code identity differs from qualified loaded code.
UnqualifiedProjector(String)
Projector qualification is missing or invalid.
Required confinement is absent or unavailable.
UndeclaredAccess
Provider read and dependency declarations disagree.
UnreadDependency(FactId)
Provider claimed a dependency it never read.
BudgetExceeded(&'static str)
A configured budget was exceeded.
Canonical(String)
Canonical projection identity could not be constructed.
MissingExplanation
A requested explanation path does not exist.
Trait Implementations§
Source§impl Clone for ProjectionError
impl Clone for ProjectionError
Source§fn clone(&self) -> ProjectionError
fn clone(&self) -> ProjectionError
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 ProjectionError
impl Debug for ProjectionError
Source§impl Display for ProjectionError
impl Display for ProjectionError
impl Eq for ProjectionError
Source§impl Error for ProjectionError
impl Error for ProjectionError
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()