Struct ethers_providers::RetryClientBuilder
source · 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
source§fn eq(&self, other: &RetryClientBuilder) -> bool
fn eq(&self, other: &RetryClientBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RetryClientBuilder
impl StructuralPartialEq for RetryClientBuilder
Auto Trait Implementations§
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<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.