pub enum ControlError {
NoControls,
DuplicateControl {
control_id: String,
},
PropertyMismatch {
control_id: String,
declared: ControlProperty,
observed: ControlProperty,
},
ControlRankedAsEntrant {
control_id: String,
},
ControlBindingIncomplete {
detail: PreimageError,
},
}Expand description
Why a suite’s controls could not be evaluated.
Variants§
NoControls
The suite declared no controls at all. An empty battery is not a passing
one, so it is refused rather than reported as all_held.
DuplicateControl
The same control identity was declared twice.
PropertyMismatch
The observation describes a different property from the declared one, so it cannot be evidence for the declared one.
ControlRankedAsEntrant
A control identity also appears as a ranked entrant. Apparatus evidence and competitive results are different records and must not share a row.
ControlBindingIncomplete
SUITE_CONTROL_INVENTORY and control_preimage disagree about which
fields the run_provenance digest covers, so the digest would bind
something other than what the record declares. Refused rather than
published under a coverage statement it does not satisfy.
Fields
detail: PreimageErrorTrait Implementations§
Source§impl Clone for ControlError
impl Clone for ControlError
Source§fn clone(&self) -> ControlError
fn clone(&self) -> ControlError
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 ControlError
impl Debug for ControlError
Source§impl Display for ControlError
impl Display for ControlError
impl Eq for ControlError
Source§impl Error for ControlError
impl Error for ControlError
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()