MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / enter_execution

Method enter_execution

crates/tinywasm/src/store/mod.rs:97–106  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

95 }
96
97 pub(crate) fn enter_execution(&mut self) -> Result<()> {
98 if self.execution_active {
99 return Err(Trap::Other(
100 "cannot call a function while another invocation is active; use FuncContext::call from host functions",
101 )
102 .into());
103 }
104 self.execution_active = true;
105 Ok(())
106 }
107
108 pub(crate) fn exit_execution(&mut self) {
109 self.execution_active = false;

Callers 4

callMethod · 0.80
call_resumableMethod · 0.80
resume_with_fuelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected