Enum wasm_instrument::gas_metering::GasMeter
source · pub enum GasMeter {
External {
module: &'static str,
function: &'static str,
},
Internal {
global: &'static str,
func_instructions: Instructions,
cost: u64,
},
}
Expand description
Implementation details of the specific method of the gas metering.
Variants§
External
Fields
Gas metering with an external function.
Internal
Fields
§
func_instructions: Instructions
Body of the local gas counting function to be injected.
Gas metering with a local function and a mutable global.