Module wasmer_vm::traphandlers
source · Expand description
WebAssembly trap handling, which is built on top of the lower-level signalhandling mechanisms.
Structs
- Temporary state stored on the stack which is registered in the
tls
module below for calls into wasm. - Opaque state used to help control TLS state across stack switches for async support.
Enums
- Stores trace message with backtrace.
Functions
- Catches any wasm traps that happen within the execution of
closure
, returning them as aResult
. - Catches any wasm traps that happen within the execution of
closure
, returning them as aResult
, with the closure contents. - Returns pointer to the trap handler used in VMContext.
- Raises a trap from inside library code immediately.
- Raises a user-defined trap immediately.
- Carries a Rust panic across wasm code and resumes the panic on the other side.
- Call the VM function pointed to by
callee
.