pub enum GateFailure {
SourceUrlShape {
id: &'static str,
source_url: &'static str,
},
MeasuredWithoutNotes {
id: &'static str,
},
VersionCharset {
id: &'static str,
version: &'static str,
},
BasisPrefix {
id: &'static str,
capability: Capability,
basis: &'static str,
},
BasisWithoutContent {
id: &'static str,
capability: Capability,
basis: &'static str,
},
BasisNewline {
id: &'static str,
capability: Capability,
},
UnmeasuredMismatch {
id: &'static str,
capability: Capability,
state: CapabilityState,
},
ProvenWithoutNotes {
id: &'static str,
},
ProvenWithTooManyUnknowns {
id: &'static str,
unknowns: usize,
},
UnknownVersionNotExperimental {
id: &'static str,
},
}Expand description
Why a gate refused. One variant per rule, so a test names the rule it is pinning.
Variants§
SourceUrlShape
Gate A: source_url is neither a URL nor the literal measured.
MeasuredWithoutNotes
Gate A: source_url is measured but notes is empty.
VersionCharset
Gate A: upstream_version is outside [A-Za-z0-9._-]+, so it cannot name one evidence file.
BasisPrefix
Gate B: a basis carries no provenance prefix.
BasisWithoutContent
Gate B: a basis is only its provenance prefix, so it cites a provenance for nothing.
BasisNewline
Gate B: a basis contains a newline, which would render as two report lines.
UnmeasuredMismatch
Gate B: unmeasured: without Unknown, or Unknown without unmeasured:.
ProvenWithoutNotes
Gate C: Proven with empty notes.
ProvenWithTooManyUnknowns
Gate C: Proven with more than one Unknown claim.
UnknownVersionNotExperimental
Gate C: a failed probe that did not degrade to Experimental with an unknown config claim.
Trait Implementations§
Source§impl Clone for GateFailure
impl Clone for GateFailure
Source§fn clone(&self) -> GateFailure
fn clone(&self) -> GateFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GateFailure
impl Debug for GateFailure
impl Eq for GateFailure
Source§impl PartialEq for GateFailure
impl PartialEq for GateFailure
impl StructuralPartialEq for GateFailure
Auto Trait Implementations§
impl Freeze for GateFailure
impl RefUnwindSafe for GateFailure
impl Send for GateFailure
impl Sync for GateFailure
impl Unpin for GateFailure
impl UnsafeUnpin for GateFailure
impl UnwindSafe for GateFailure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.