Trait wasm_instrument::gas_metering::Backend

source ·
pub trait Backend {
    // Required method
    fn gas_meter<R: Rules>(self, module: &Module, rules: &R) -> GasMeter;
}
Expand description

Under the hood part of the gas metering mechanics.

Required Methods§

source

fn gas_meter<R: Rules>(self, module: &Module, rules: &R) -> GasMeter

Provides the gas metering implementation details.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Backend for wasm_instrument::gas_metering::host_function::Injector

source§

impl Backend for wasm_instrument::gas_metering::mutable_global::Injector