Enum ethcore_miner::gas_pricer::GasPricer [−][src]
pub enum GasPricer { Fixed(U256), }
Struct to look after updating the acceptable gas price of a miner.
Variants
Fixed(U256)
A fixed gas price in terms of Wei - always the argument given.
Methods
impl GasPricer
[src]
impl GasPricer
pub fn new_fixed(gas_price: U256) -> GasPricer
[src]
pub fn new_fixed(gas_price: U256) -> GasPricer
Create a new Fixed GasPricer
.
pub fn recalibrate<F: FnOnce(U256) + Sync + Send + 'static>(
&mut self,
set_price: F
)
[src]
pub fn recalibrate<F: FnOnce(U256) + Sync + Send + 'static>(
&mut self,
set_price: F
)
Recalibrate current gas price.
Trait Implementations
impl Debug for GasPricer
[src]
impl Debug for GasPricer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for GasPricer
[src]
impl PartialEq for GasPricer