MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / get_fuel

Method get_fuel

crates/wasmtime/src/runtime/func.rs:2170–2172  ·  view source on GitHub ↗

Returns the remaining fuel in the store. For more information see [`Store::get_fuel`](crate::Store::get_fuel)

(&self)

Source from the content-addressed store, hash-verified

2168 ///
2169 /// For more information see [`Store::get_fuel`](crate::Store::get_fuel)
2170 pub fn get_fuel(&self) -> Result<u64> {
2171 self.store.get_fuel()
2172 }
2173
2174 /// Set the amount of fuel in this store to be consumed when executing wasm code.
2175 ///

Callers 7

fuel_consumedFunction · 0.45
custom_operator_costFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
store_fuelFunction · 0.45

Calls

no outgoing calls

Tested by 1

store_fuelFunction · 0.36