#[non_exhaustive]pub struct RateLimitRetryPolicy;
Expand description
RetryBackoffLayer RateLimitRetryPolicy implements RetryPolicy to determine whether to retry depending on the err.
Trait Implementations§
source§impl Clone for RateLimitRetryPolicy
impl Clone for RateLimitRetryPolicy
source§fn clone(&self) -> RateLimitRetryPolicy
fn clone(&self) -> RateLimitRetryPolicy
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 RateLimitRetryPolicy
impl Debug for RateLimitRetryPolicy
source§impl Default for RateLimitRetryPolicy
impl Default for RateLimitRetryPolicy
source§fn default() -> RateLimitRetryPolicy
fn default() -> RateLimitRetryPolicy
Returns the “default value” for a type. Read more
source§impl RetryPolicy for RateLimitRetryPolicy
impl RetryPolicy for RateLimitRetryPolicy
source§fn backoff_hint(&self, error: &TransportError) -> Option<Duration>
fn backoff_hint(&self, error: &TransportError) -> Option<Duration>
Provides a backoff hint if the error response contains it
source§fn should_retry(&self, error: &TransportError) -> bool
fn should_retry(&self, error: &TransportError) -> bool
Whether to retry the request based on the given
error
impl Copy for RateLimitRetryPolicy
Auto Trait Implementations§
impl Freeze for RateLimitRetryPolicy
impl RefUnwindSafe for RateLimitRetryPolicy
impl Send for RateLimitRetryPolicy
impl Sync for RateLimitRetryPolicy
impl Unpin for RateLimitRetryPolicy
impl UnwindSafe for RateLimitRetryPolicy
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
)