pub struct DriftConsensusResult {Show 14 fields
pub level: DriftLevel,
pub warning_votes: usize,
pub drift_votes: usize,
pub available_detectors: usize,
pub triggered_detectors: Vec<String>,
pub consecutive_windows: u64,
pub clear_streak: u64,
pub cooldown_remaining: u64,
pub warming: bool,
pub incomplete: bool,
pub generation_changed: bool,
pub new_event: bool,
pub merged_event: bool,
pub event: Option<DriftEventSummary>,
}Expand description
Explainable result for one consensus window.
Fields§
§level: DriftLevelHysteretic consensus level after this window.
warning_votes: usizeAvailable warning-or-drift votes.
drift_votes: usizeAvailable drift votes.
available_detectors: usizeNumber of available detector votes.
triggered_detectors: Vec<String>Detectors currently voting Warning or Drift.
consecutive_windows: u64Consecutive windows for the current raw candidate.
clear_streak: u64Current stable-window streak used for clearing.
cooldown_remaining: u64Remaining event cooldown windows.
warming: boolWhether the consensus is still warming.
incomplete: boolWhether insufficient detector data prevented a state transition.
generation_changed: boolWhether this call observed a generation change.
new_event: boolWhether a new (unmerged) event was created.
merged_event: boolWhether a repeated occurrence was merged into the prior event.
event: Option<DriftEventSummary>Latest event summary, if any.
Trait Implementations§
Source§impl Clone for DriftConsensusResult
impl Clone for DriftConsensusResult
Source§fn clone(&self) -> DriftConsensusResult
fn clone(&self) -> DriftConsensusResult
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 DriftConsensusResult
impl Debug for DriftConsensusResult
impl Eq for DriftConsensusResult
Source§impl PartialEq for DriftConsensusResult
impl PartialEq for DriftConsensusResult
impl StructuralPartialEq for DriftConsensusResult
Auto Trait Implementations§
impl Freeze for DriftConsensusResult
impl RefUnwindSafe for DriftConsensusResult
impl Send for DriftConsensusResult
impl Sync for DriftConsensusResult
impl Unpin for DriftConsensusResult
impl UnsafeUnpin for DriftConsensusResult
impl UnwindSafe for DriftConsensusResult
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