# Enum ethcore::miner::GasPricer [−] [src]

    pub enum GasPricer {
        Fixed(U256),
        Calibrated(GasPriceCalibrator),
    }

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.

## Methods

### `impl GasPricer`
[src]

#### `fn new_calibrated(options: GasPriceCalibratorOptions) -> GasPricer`

Create a new Calibrated `GasPricer`.

#### `fn new_fixed(gas_price: U256) -> GasPricer`

Create a new Fixed `GasPricer`.

## Trait Implementations

### `impl Debug for GasPricer`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl PartialEq for GasPricer`
[src]

#### `fn eq(&self, __arg_0: &GasPricer) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &GasPricer) -> bool`

This method tests for `!=`.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)