pub enum EngineError {
Show 13 variants
UnsupportedSchemaVersion {
package_kind: &'static str,
package_id: String,
version: String,
supported: &'static str,
},
DuplicateDefinitionPackage(String),
UnknownCapability(String),
DuplicateCapability(String),
UnknownParameter {
capability: String,
parameter: String,
},
MissingParameter {
capability: String,
parameter: String,
},
InvalidParameterType {
capability: String,
parameter: String,
},
DuplicateBinding(String),
InvalidRuleId(String),
UnknownDefinition(String),
MissingDefinitionPackage(String),
CapabilityContract {
definition: String,
capability: String,
detail: String,
},
DuplicateRule(String),
}Expand description
Errors while compiling untrusted declarations into a trusted execution plan.
Variants§
UnsupportedSchemaVersion
A package declares a schema version this compiler does not implement.
DuplicateDefinitionPackage(String)
Multiple supplied definition packages declared the same package identity.
UnknownCapability(String)
A capability was not registered by the host.
DuplicateCapability(String)
Two trusted implementations claimed an ID.
UnknownParameter
A package supplied a non-declared parameter.
MissingParameter
A required parameter was absent.
InvalidParameterType
A binding type did not conform to its descriptor.
DuplicateBinding(String)
A rule binds a parameter more than once.
InvalidRuleId(String)
A rule ID violates the engine identity contract.
UnknownDefinition(String)
A rule references no loaded definition.
MissingDefinitionPackage(String)
A ruleset references a definition package that was not supplied.
CapabilityContract
A trusted capability descriptor conflicts with its portable definition.
DuplicateRule(String)
Rule IDs must be unique throughout the recursive folder tree.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
impl Eq for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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()