Struct ethers_providers::WeightedProvider
source · pub struct WeightedProvider<T> { /* private fields */ }
Expand description
The configuration of a provider for the QuorumProvider
Implementations§
source§impl<T> WeightedProvider<T>
impl<T> WeightedProvider<T>
pub fn with_weight(inner: T, weight: u64) -> Self
Trait Implementations§
source§impl<T: Clone> Clone for WeightedProvider<T>
impl<T: Clone> Clone for WeightedProvider<T>
source§fn clone(&self) -> WeightedProvider<T>
fn clone(&self) -> WeightedProvider<T>
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 more