pub struct PilotHistory { /* private fields */ }Implementations§
Source§impl PilotHistory
impl PilotHistory
Sourcepub fn entry(&self, stable_target_key: &str) -> Option<&TargetHistoryEntry>
pub fn entry(&self, stable_target_key: &str) -> Option<&TargetHistoryEntry>
Returns the history entry recorded for a stable target key, if any.
Sourcepub fn retry_count(&self, stable_target_key: &str) -> u32
pub fn retry_count(&self, stable_target_key: &str) -> u32
Returns how many attempts have been recorded for a stable target key.
Sourcepub fn is_exhausted(&self, stable_target_key: &str) -> bool
pub fn is_exhausted(&self, stable_target_key: &str) -> bool
Returns true when a stable target key has been marked exhausted.
Sourcepub fn mark_selected(&mut self, stable_target_key: &str)
pub fn mark_selected(&mut self, stable_target_key: &str)
Marks a stable target key as selected for another attempt.
Sourcepub fn record_outcome(
&mut self,
stable_target_key: &str,
bundle_id: Option<String>,
outcome_signature: String,
max_retries_per_target: u32,
)
pub fn record_outcome( &mut self, stable_target_key: &str, bundle_id: Option<String>, outcome_signature: String, max_retries_per_target: u32, )
Records the outcome of an attempted action for a stable target key.
Sourcepub fn entries(&self) -> impl Iterator<Item = (&String, &TargetHistoryEntry)>
pub fn entries(&self) -> impl Iterator<Item = (&String, &TargetHistoryEntry)>
Iterates over all recorded history entries keyed by stable target key.
Trait Implementations§
Source§impl Clone for PilotHistory
impl Clone for PilotHistory
Source§fn clone(&self) -> PilotHistory
fn clone(&self) -> PilotHistory
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 PilotHistory
impl Debug for PilotHistory
Source§impl Default for PilotHistory
impl Default for PilotHistory
Source§fn default() -> PilotHistory
fn default() -> PilotHistory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PilotHistory
impl<'de> Deserialize<'de> for PilotHistory
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
Auto Trait Implementations§
impl Freeze for PilotHistory
impl RefUnwindSafe for PilotHistory
impl Send for PilotHistory
impl Sync for PilotHistory
impl Unpin for PilotHistory
impl UnsafeUnpin for PilotHistory
impl UnwindSafe for PilotHistory
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