Enum openethereum::params::GasPricerConfig
source · [−]pub enum GasPricerConfig {
Fixed(U256),
Calibrated {
usd_per_tx: f32,
recalibration_period: Duration,
api_endpoint: String,
},
}
Variants
Fixed(U256)
Calibrated
Implementations
sourceimpl GasPricerConfig
impl GasPricerConfig
pub fn to_gas_pricer(&self, fetch: FetchClient, p: Executor) -> GasPricer
Trait Implementations
sourceimpl Debug for GasPricerConfig
impl Debug for GasPricerConfig
sourceimpl Default for GasPricerConfig
impl Default for GasPricerConfig
sourceimpl PartialEq<GasPricerConfig> for GasPricerConfig
impl PartialEq<GasPricerConfig> for GasPricerConfig
sourcefn eq(&self, other: &GasPricerConfig) -> bool
fn eq(&self, other: &GasPricerConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GasPricerConfig) -> bool
fn ne(&self, other: &GasPricerConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for GasPricerConfig
Auto Trait Implementations
impl RefUnwindSafe for GasPricerConfig
impl Send for GasPricerConfig
impl Sync for GasPricerConfig
impl Unpin for GasPricerConfig
impl UnwindSafe for GasPricerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more