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

Method with_fuel

cranelift/interpreter/src/interpreter.rs:39–41  ·  view source on GitHub ↗

The `fuel` mechanism sets a number of instructions that the interpreter can execute before stopping. If this value is `None` (the default), no limit is imposed.

(self, fuel: Option<u64>)

Source from the content-addressed store, hash-verified

37 /// the interpreter can execute before stopping. If this
38 /// value is `None` (the default), no limit is imposed.
39 pub fn with_fuel(self, fuel: Option<u64>) -> Self {
40 Self { fuel, ..self }
41 }
42
43 /// Call a function by name; this is a helpful proxy for [Interpreter::call_by_index].
44 pub fn call_by_name(

Callers 2

fuelFunction · 0.80
build_interpreterFunction · 0.80

Calls

no outgoing calls

Tested by 1

fuelFunction · 0.64