MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / with_fuel_policy

Method with_fuel_policy

crates/tinywasm/src/engine.rs:128–131  ·  view source on GitHub ↗

Set the fuel accounting policy for budgeted execution.

(mut self, fuel_policy: FuelPolicy)

Source from the content-addressed store, hash-verified

126
127 /// Set the fuel accounting policy for budgeted execution.
128 pub fn with_fuel_policy(mut self, fuel_policy: FuelPolicy) -> Self {
129 self.fuel_policy = fuel_policy;
130 self
131 }
132
133 /// Set the backend used for runtime memories.
134 pub fn with_memory_backend(mut self, memory_backend: MemoryBackend) -> Self {

Callers 3

build_engineMethod · 0.80
criterion_benchmarkFunction · 0.80

Calls

no outgoing calls

Tested by 1