pub struct AdaptationRuleEvaluation { /* private fields */ }Expand description
Explainable evaluation of one adaptation policy.
Implementations§
Source§impl AdaptationRuleEvaluation
impl AdaptationRuleEvaluation
Sourcepub fn selector_matched(&self) -> bool
pub fn selector_matched(&self) -> bool
Returns whether outcome status and stage matched.
Sourcepub fn condition(&self) -> Option<&ExpressionEvaluation>
pub fn condition(&self) -> Option<&ExpressionEvaluation>
Returns the optional evidence expression trace.
Sourcepub fn outcome_evidence_matched(&self) -> bool
pub fn outcome_evidence_matched(&self) -> bool
Returns whether conditional evidence belongs to the source outcome.
Sourcepub fn rule_limit_exhausted(&self) -> bool
pub fn rule_limit_exhausted(&self) -> bool
Returns whether the rule’s retry budget was exhausted.
Sourcepub fn action_limit_exhausted(&self) -> bool
pub fn action_limit_exhausted(&self) -> bool
Returns whether the scheduled action reached its global limit.
Sourcepub fn policy_suppressed(&self) -> bool
pub fn policy_suppressed(&self) -> bool
Returns whether learned, adaptive, or operator policy suppressed the repeated action.
Trait Implementations§
Source§impl Clone for AdaptationRuleEvaluation
impl Clone for AdaptationRuleEvaluation
Source§fn clone(&self) -> AdaptationRuleEvaluation
fn clone(&self) -> AdaptationRuleEvaluation
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 AdaptationRuleEvaluation
impl Debug for AdaptationRuleEvaluation
impl Eq for AdaptationRuleEvaluation
Source§impl PartialEq for AdaptationRuleEvaluation
impl PartialEq for AdaptationRuleEvaluation
Source§impl Serialize for AdaptationRuleEvaluation
impl Serialize for AdaptationRuleEvaluation
impl StructuralPartialEq for AdaptationRuleEvaluation
Auto Trait Implementations§
impl Freeze for AdaptationRuleEvaluation
impl RefUnwindSafe for AdaptationRuleEvaluation
impl Send for AdaptationRuleEvaluation
impl Sync for AdaptationRuleEvaluation
impl Unpin for AdaptationRuleEvaluation
impl UnsafeUnpin for AdaptationRuleEvaluation
impl UnwindSafe for AdaptationRuleEvaluation
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.§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