pub struct AdaptationLedger { /* private fields */ }Expand description
Replayable counters and suppressions for one adaptive scan session.
Implementations§
Source§impl AdaptationLedger
impl AdaptationLedger
Sourcepub fn transitions(&self) -> u32
pub fn transitions(&self) -> u32
Returns the number of recorded directives.
Sourcepub fn rule_applications(&self, rule_id: &str) -> u16
pub fn rule_applications(&self, rule_id: &str) -> u16
Returns how often a rule produced a directive.
Sourcepub fn action_schedules(&self, action_id: &str) -> u16
pub fn action_schedules(&self, action_id: &str) -> u16
Returns how often an explicit action was scheduled.
Sourcepub fn suppressed_actions(&self) -> &BTreeSet<String>
pub fn suppressed_actions(&self) -> &BTreeSet<String>
Returns action identities suppressed from subsequent replanning.
Sourcepub fn record(
&mut self,
decision: &AdaptiveDecision,
) -> Result<(), AdaptivePipelineError>
pub fn record( &mut self, decision: &AdaptiveDecision, ) -> Result<(), AdaptivePipelineError>
Records one decision exactly once and in sequence order.
Trait Implementations§
Source§impl Clone for AdaptationLedger
impl Clone for AdaptationLedger
Source§fn clone(&self) -> AdaptationLedger
fn clone(&self) -> AdaptationLedger
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 AdaptationLedger
impl Debug for AdaptationLedger
Source§impl Default for AdaptationLedger
impl Default for AdaptationLedger
Source§fn default() -> AdaptationLedger
fn default() -> AdaptationLedger
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdaptationLedger
impl<'de> Deserialize<'de> for AdaptationLedger
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
impl Eq for AdaptationLedger
Source§impl PartialEq for AdaptationLedger
impl PartialEq for AdaptationLedger
Source§impl Serialize for AdaptationLedger
impl Serialize for AdaptationLedger
impl StructuralPartialEq for AdaptationLedger
Auto Trait Implementations§
impl Freeze for AdaptationLedger
impl RefUnwindSafe for AdaptationLedger
impl Send for AdaptationLedger
impl Sync for AdaptationLedger
impl Unpin for AdaptationLedger
impl UnsafeUnpin for AdaptationLedger
impl UnwindSafe for AdaptationLedger
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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