wasm_instrument::gas_metering

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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