pub struct BackoffState {
pub attempt: u32,
}Expand description
Tracks how many attempts have been made so far.
Fields§
§attempt: u32Zero-based attempt counter. 0 means first retry has not yet occurred.
Trait Implementations§
Source§impl Clone for BackoffState
impl Clone for BackoffState
Source§fn clone(&self) -> BackoffState
fn clone(&self) -> BackoffState
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 BackoffState
impl Debug for BackoffState
Source§impl Default for BackoffState
impl Default for BackoffState
Source§fn default() -> BackoffState
fn default() -> BackoffState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackoffState
impl<'de> Deserialize<'de> for BackoffState
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 BackoffState
impl RefUnwindSafe for BackoffState
impl Send for BackoffState
impl Sync for BackoffState
impl Unpin for BackoffState
impl UnsafeUnpin for BackoffState
impl UnwindSafe for BackoffState
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