pub struct RetryState {
pub config: HttpRetryPolicyConfig,
pub attempt: u32,
}Expand description
Tracks retry state for a single operation.
Fields§
§config: HttpRetryPolicyConfig§attempt: u32Implementations§
Source§impl RetryState
impl RetryState
Sourcepub fn new(config: HttpRetryPolicyConfig) -> Self
pub fn new(config: HttpRetryPolicyConfig) -> Self
Creates a new retry state with default config.
Auto Trait Implementations§
impl Freeze for RetryState
impl RefUnwindSafe for RetryState
impl Send for RetryState
impl Sync for RetryState
impl Unpin for RetryState
impl UnsafeUnpin for RetryState
impl UnwindSafe for RetryState
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