pub enum DiffExecResult {
Match {
max_abs_diff: f64,
},
Divergent {
max_abs_diff: f64,
tolerance: f64,
},
NotRun {
reason: String,
},
}Expand description
Result of a DiffExec quorum policy execution. Two PTX (or WGSL/
SPIR-V) programs were run on test inputs; the engine compared
their numerical outputs.
Variants§
Match
Outputs matched within tolerance. Records the max absolute difference observed for audit trail.
Divergent
Outputs diverged beyond tolerance. Contract violation — CI fails. Records the divergence for diagnosis.
NotRun
Engine did not run (e.g., test hardware unavailable). Vote downgrades from Runtime to a placeholder. The substrate records this rather than silently dropping it.
Trait Implementations§
Source§impl Clone for DiffExecResult
impl Clone for DiffExecResult
Source§fn clone(&self) -> DiffExecResult
fn clone(&self) -> DiffExecResult
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 DiffExecResult
impl Debug for DiffExecResult
Source§impl<'de> Deserialize<'de> for DiffExecResult
impl<'de> Deserialize<'de> for DiffExecResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DiffExecResult
impl PartialEq for DiffExecResult
Source§fn eq(&self, other: &DiffExecResult) -> bool
fn eq(&self, other: &DiffExecResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiffExecResult
impl Serialize for DiffExecResult
impl StructuralPartialEq for DiffExecResult
Auto Trait Implementations§
impl Freeze for DiffExecResult
impl RefUnwindSafe for DiffExecResult
impl Send for DiffExecResult
impl Sync for DiffExecResult
impl Unpin for DiffExecResult
impl UnsafeUnpin for DiffExecResult
impl UnwindSafe for DiffExecResult
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