Struct ethers_providers::RetryClientBuilder
source · pub struct RetryClientBuilder { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Clone for RetryClientBuilder
impl Clone for RetryClientBuilder
sourcefn clone(&self) -> RetryClientBuilder
fn clone(&self) -> RetryClientBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RetryClientBuilder
impl Debug for RetryClientBuilder
sourceimpl Default for RetryClientBuilder
impl Default for RetryClientBuilder
sourceimpl PartialEq<RetryClientBuilder> for RetryClientBuilder
impl PartialEq<RetryClientBuilder> for RetryClientBuilder
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.