pub struct CoherenceResult {
pub transitions: u32,
pub violations: u32,
pub is_coherent: bool,
}Expand description
Result of coherence validation (for on-chain reporting).
Fields§
§transitions: u32Number of transitions checked
violations: u32Number of drift violations
is_coherent: boolWhether coherence is within bounds
Implementations§
Source§impl CoherenceResult
impl CoherenceResult
Sourcepub fn from_meter(meter: &DriftMeter, max_rate: f32) -> Self
pub fn from_meter(meter: &DriftMeter, max_rate: f32) -> Self
Create from drift meter measurements.
Sourcepub fn drift_rate(&self) -> f32
pub fn drift_rate(&self) -> f32
Drift rate (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for CoherenceResult
impl Clone for CoherenceResult
Source§fn clone(&self) -> CoherenceResult
fn clone(&self) -> CoherenceResult
Returns a duplicate of the value. Read more
1.0.0 · 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 CoherenceResult
impl Debug for CoherenceResult
Source§impl Default for CoherenceResult
impl Default for CoherenceResult
Source§fn default() -> CoherenceResult
fn default() -> CoherenceResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for CoherenceResult
impl PartialEq for CoherenceResult
impl Copy for CoherenceResult
impl Eq for CoherenceResult
impl StructuralPartialEq for CoherenceResult
Auto Trait Implementations§
impl Freeze for CoherenceResult
impl RefUnwindSafe for CoherenceResult
impl Send for CoherenceResult
impl Sync for CoherenceResult
impl Unpin for CoherenceResult
impl UnsafeUnpin for CoherenceResult
impl UnwindSafe for CoherenceResult
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