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

Method with_trap_on_oom

crates/tinywasm/src/engine.rs:172–175  ·  view source on GitHub ↗

Configure whether memory and stack allocation failures trap immediately.

(mut self, trap_on_oom: bool)

Source from the content-addressed store, hash-verified

170
171 /// Configure whether memory and stack allocation failures trap immediately.
172 pub fn with_trap_on_oom(mut self, trap_on_oom: bool) -> Self {
173 self.trap_on_oom = trap_on_oom;
174 self
175 }
176
177 /// Get the current fuel policy
178 pub fn fuel_policy(&self) -> FuelPolicy {

Callers 1

build_engineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected