Enum ethcore_miner::gas_pricer::GasPricer
source · [−]pub enum GasPricer {
Fixed(U256),
Calibrated(GasPriceCalibrator),
}
Expand description
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.
Calibrated(GasPriceCalibrator)
Gas price is calibrated according to a fixed amount of USD.
Implementations
sourceimpl GasPricer
impl GasPricer
sourcepub fn new_calibrated(calibrator: GasPriceCalibrator) -> GasPricer
pub fn new_calibrated(calibrator: GasPriceCalibrator) -> GasPricer
Create a new Calibrated GasPricer
.
Trait Implementations
impl StructuralPartialEq for GasPricer
Auto Trait Implementations
impl !RefUnwindSafe for GasPricer
impl Send for GasPricer
impl Sync for GasPricer
impl Unpin for GasPricer
impl !UnwindSafe for GasPricer
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