pub struct RunRetryContext {
pub attempt_number: u32,
pub previous_failure: Option<String>,
pub previous_notes: Vec<String>,
}Expand description
Retry context derived from a unit’s attempt history.
Fields§
§attempt_number: u32§previous_failure: Option<String>§previous_notes: Vec<String>Trait Implementations§
Source§impl Clone for RunRetryContext
impl Clone for RunRetryContext
Source§fn clone(&self) -> RunRetryContext
fn clone(&self) -> RunRetryContext
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 RunRetryContext
impl Debug for RunRetryContext
Source§impl PartialEq for RunRetryContext
impl PartialEq for RunRetryContext
Source§fn eq(&self, other: &RunRetryContext) -> bool
fn eq(&self, other: &RunRetryContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RunRetryContext
Auto Trait Implementations§
impl Freeze for RunRetryContext
impl RefUnwindSafe for RunRetryContext
impl Send for RunRetryContext
impl Sync for RunRetryContext
impl Unpin for RunRetryContext
impl UnsafeUnpin for RunRetryContext
impl UnwindSafe for RunRetryContext
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