pub struct RetryClientBuilder { /* private fields */ }Expand description
Builder for a RetryClient
Implementations§
Source§impl RetryClientBuilder
impl RetryClientBuilder
Sourcepub fn timeout_retries(self, timeout_retries: u32) -> Self
pub fn timeout_retries(self, timeout_retries: u32) -> Self
Sets the number of retries after a connection times out
Note: this will only be used for request::Error::TimedOut
Sourcepub fn rate_limit_retries(self, rate_limit_retries: u32) -> Self
pub fn rate_limit_retries(self, rate_limit_retries: u32) -> Self
How many retries for rate limited responses
Sourcepub fn compute_units_per_second(self, compute_units_per_second: u64) -> Self
pub fn compute_units_per_second(self, compute_units_per_second: u64) -> Self
Sets the number of assumed available compute units per second
Sourcepub fn initial_backoff(self, initial_backoff: Duration) -> Self
pub fn initial_backoff(self, initial_backoff: Duration) -> Self
Sets the duration to wait initially before retrying
Sourcepub fn build<T>(
self,
client: T,
policy: Box<dyn RetryPolicy<T::Error>>,
) -> RetryClient<T>
pub fn build<T>( self, client: T, policy: Box<dyn RetryPolicy<T::Error>>, ) -> RetryClient<T>
Creates the RetryClient with the configured settings
Trait Implementations§
Source§impl Clone for RetryClientBuilder
impl Clone for RetryClientBuilder
Source§fn clone(&self) -> RetryClientBuilder
fn clone(&self) -> RetryClientBuilder
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 RetryClientBuilder
impl Debug for RetryClientBuilder
Source§impl Default for RetryClientBuilder
impl Default for RetryClientBuilder
Source§impl PartialEq for RetryClientBuilder
impl PartialEq for RetryClientBuilder
impl Eq for RetryClientBuilder
impl StructuralPartialEq for RetryClientBuilder
Auto Trait Implementations§
impl Freeze for RetryClientBuilder
impl RefUnwindSafe for RetryClientBuilder
impl Send for RetryClientBuilder
impl Sync for RetryClientBuilder
impl Unpin for RetryClientBuilder
impl UnwindSafe for RetryClientBuilder
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more