Struct retry_future::InfiniteRetryStrategy
source · [−]pub struct InfiniteRetryStrategy {
pub duration_between_retries: Duration,
}Expand description
Infinite retry
Fields
duration_between_retries: DurationTrait Implementations
sourceimpl RetryStrategy for InfiniteRetryStrategy
impl RetryStrategy for InfiniteRetryStrategy
sourcefn check_attempt(
&mut self,
_attempts_before: usize
) -> Result<Duration, TooManyAttempts>
fn check_attempt(
&mut self,
_attempts_before: usize
) -> Result<Duration, TooManyAttempts>
sourcefn retry_early_returned_errors(&self) -> bool
fn retry_early_returned_errors(&self) -> bool
Auto Trait Implementations
impl RefUnwindSafe for InfiniteRetryStrategy
impl Send for InfiniteRetryStrategy
impl Sync for InfiniteRetryStrategy
impl Unpin for InfiniteRetryStrategy
impl UnwindSafe for InfiniteRetryStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more