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>
sourcepub fn with_weight(inner: T, weight: u64) -> Self
pub fn with_weight(inner: T, weight: u64) -> Self
Instantiate a WeightedProvider
with a set weight
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 moreAuto Trait Implementations§
impl<T> RefUnwindSafe for WeightedProvider<T>where
T: RefUnwindSafe,
impl<T> Send for WeightedProvider<T>where
T: Send,
impl<T> Sync for WeightedProvider<T>where
T: Sync,
impl<T> Unpin for WeightedProvider<T>where
T: Unpin,
impl<T> UnwindSafe for WeightedProvider<T>where
T: UnwindSafe,
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