pub enum EnvironmentErrorCode {
Show 13 variants
UnsupportedSchema,
IncompatiblePrelude,
Malformed,
ResourceLimit,
DependencyCycle,
UnresolvedObligation,
TrustedNameReplacement,
IllTyped,
InexactConversion,
IndependentDisagreement,
TargetNotProved,
MissingEvidence,
Unsupported,
}Expand description
Why an environment certificate was refused. Each code is one kind of refusal, so a caller — and a tamper test — can say not only THAT a certificate failed but which check refused it.
Variants§
UnsupportedSchema
The document names a schema this checker does not implement.
IncompatiblePrelude
The certificate was minted against another prelude.
Malformed
The document is not a well-formed certificate (bad JSON, a dangling or forward row).
ResourceLimit
A declared limit was exceeded before any checking work began.
DependencyCycle
Declarations cite each other in a cycle.
UnresolvedObligation
A declaration cites a name that is not declared before it, or checking left an obligation.
TrustedNameReplacement
A declaration takes a name the base owns, a reserved name, or an earlier entry’s name.
IllTyped
The kernel refuses a declaration.
InexactConversion
A declaration checks only under cumulative subtyping, where exact conversion was declared.
IndependentDisagreement
The two kernels disagree.
TargetNotProved
The target is missing or has no proof.
MissingEvidence
Evidence the certificate must carry is missing (an opaque theorem’s proof).
Unsupported
A construct this checker does not rebuild.
Implementations§
Trait Implementations§
Source§impl Clone for EnvironmentErrorCode
impl Clone for EnvironmentErrorCode
Source§fn clone(&self) -> EnvironmentErrorCode
fn clone(&self) -> EnvironmentErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more