pub struct OrRetryPolicyFn<P = RateLimitRetryPolicy> { /* private fields */ }Expand description
A RetryPolicy that supports an additional closure for deciding if an error should be
retried.
Implementations§
Source§impl<P> OrRetryPolicyFn<P>
impl<P> OrRetryPolicyFn<P>
Trait Implementations§
Source§impl<P: Clone> Clone for OrRetryPolicyFn<P>
impl<P: Clone> Clone for OrRetryPolicyFn<P>
Source§fn clone(&self) -> OrRetryPolicyFn<P>
fn clone(&self) -> OrRetryPolicyFn<P>
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<P: Debug> Debug for OrRetryPolicyFn<P>
impl<P: Debug> Debug for OrRetryPolicyFn<P>
Source§impl<P: RetryPolicy> RetryPolicy for OrRetryPolicyFn<P>
impl<P: RetryPolicy> RetryPolicy for OrRetryPolicyFn<P>
Source§fn should_retry(&self, error: &TransportError) -> bool
fn should_retry(&self, error: &TransportError) -> bool
Whether to retry the request based on the given
errorSource§fn backoff_hint(&self, error: &TransportError) -> Option<Duration>
fn backoff_hint(&self, error: &TransportError) -> Option<Duration>
Providers may include the
backoff in the error response directlyAuto Trait Implementations§
impl<P> Freeze for OrRetryPolicyFn<P>where
P: Freeze,
impl<P = RateLimitRetryPolicy> !RefUnwindSafe for OrRetryPolicyFn<P>
impl<P> Send for OrRetryPolicyFn<P>where
P: Send,
impl<P> Sync for OrRetryPolicyFn<P>where
P: Sync,
impl<P> Unpin for OrRetryPolicyFn<P>where
P: Unpin,
impl<P = RateLimitRetryPolicy> !UnwindSafe for OrRetryPolicyFn<P>
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