pub struct DecisionEdgeExplanation {
pub index: usize,
pub source_matches: bool,
pub missing_flags: u64,
pub forbidden_flags: u64,
pub remaining_seconds: f64,
pub outcome: DecisionEdgeOutcome,
}Expand description
All guard checks for an edge, even when an earlier edge wins or its source
does not match. No sensor callbacks run: guards inspect supplied bits only.
See DecisionExplanation::edges and DecisionState::explain.
Fields§
§index: usizeIndex in DecisionGraph::edges.
source_matches: boolWhether the explicit source matches, or the source is a wildcard.
missing_flags: u64Required sensor bits absent from the supplied flags.
forbidden_flags: u64Forbidden sensor bits present in the supplied flags.
remaining_seconds: f64Time still needed after the proposed delta, zero when the timer passes.
outcome: DecisionEdgeOutcomeWhether the edge fails, wins, or loses to an earlier matching edge.
Trait Implementations§
Source§impl Clone for DecisionEdgeExplanation
impl Clone for DecisionEdgeExplanation
Source§fn clone(&self) -> DecisionEdgeExplanation
fn clone(&self) -> DecisionEdgeExplanation
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 DecisionEdgeExplanation
impl Debug for DecisionEdgeExplanation
Source§impl PartialEq for DecisionEdgeExplanation
impl PartialEq for DecisionEdgeExplanation
impl Copy for DecisionEdgeExplanation
impl StructuralPartialEq for DecisionEdgeExplanation
Auto Trait Implementations§
impl Freeze for DecisionEdgeExplanation
impl RefUnwindSafe for DecisionEdgeExplanation
impl Send for DecisionEdgeExplanation
impl Sync for DecisionEdgeExplanation
impl Unpin for DecisionEdgeExplanation
impl UnwindSafe for DecisionEdgeExplanation
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