pub struct ExponentialBackoffTimed { /* private fields */ }
Expand description
Exponential backoff with a maximum retry duration.
Implementations§
Source§impl ExponentialBackoffTimed
impl ExponentialBackoffTimed
Sourcepub fn max_retries(&self) -> Option<u32>
pub fn max_retries(&self) -> Option<u32>
Maximum number of allowed retries attempts.
Trait Implementations§
Source§impl Clone for ExponentialBackoffTimed
impl Clone for ExponentialBackoffTimed
Source§fn clone(&self) -> ExponentialBackoffTimed
fn clone(&self) -> ExponentialBackoffTimed
Returns a copy 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 ExponentialBackoffTimed
impl Debug for ExponentialBackoffTimed
Source§impl PartialEq for ExponentialBackoffTimed
impl PartialEq for ExponentialBackoffTimed
Source§impl RetryPolicy for ExponentialBackoffTimed
impl RetryPolicy for ExponentialBackoffTimed
Source§fn should_retry(
&self,
request_start_time: SystemTime,
n_past_retries: u32,
) -> RetryDecision
fn should_retry( &self, request_start_time: SystemTime, n_past_retries: u32, ) -> RetryDecision
Determine if a task should be retried according to a retry policy.
impl Copy for ExponentialBackoffTimed
impl Eq for ExponentialBackoffTimed
impl StructuralPartialEq for ExponentialBackoffTimed
Auto Trait Implementations§
impl Freeze for ExponentialBackoffTimed
impl RefUnwindSafe for ExponentialBackoffTimed
impl Send for ExponentialBackoffTimed
impl Sync for ExponentialBackoffTimed
impl Unpin for ExponentialBackoffTimed
impl UnwindSafe for ExponentialBackoffTimed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.