Struct ethers_providers::RetryClientBuilder
source · pub struct RetryClientBuilder { /* private fields */ }
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>where
T: JsonRpcClient,
T::Error: Sync + Send + 'static,
pub fn build<T>(
self,
client: T,
policy: Box<dyn RetryPolicy<T::Error>>
) -> RetryClient<T>where
T: JsonRpcClient,
T::Error: Sync + Send + 'static,
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<RetryClientBuilder> for RetryClientBuilder
impl PartialEq<RetryClientBuilder> for RetryClientBuilder
source§fn eq(&self, other: &RetryClientBuilder) -> bool
fn eq(&self, other: &RetryClientBuilder) -> bool
impl Eq for RetryClientBuilder
impl StructuralEq 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.