pub struct InfiniteRetryStrategy {
pub duration_between_retries: Duration,
}Expand description
Infinite retry
Fields§
§duration_between_retries: DurationTrait Implementations§
Source§impl RetryStrategy for InfiniteRetryStrategy
impl RetryStrategy for InfiniteRetryStrategy
Source§fn check_attempt(
&mut self,
_attempts_before: usize,
) -> Result<Duration, TooManyAttempts>
fn check_attempt( &mut self, _attempts_before: usize, ) -> Result<Duration, TooManyAttempts>
attempts_before means how many attempts a future
was trying to resolve to Ok(_) after returning Err(_).Source§fn retry_early_returned_errors(&self) -> bool
fn retry_early_returned_errors(&self) -> bool
Auto Trait Implementations§
impl Freeze for InfiniteRetryStrategy
impl RefUnwindSafe for InfiniteRetryStrategy
impl Send for InfiniteRetryStrategy
impl Sync for InfiniteRetryStrategy
impl Unpin for InfiniteRetryStrategy
impl UnwindSafe for InfiniteRetryStrategy
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