Module traphandlers

Source
Expand description

WebAssembly trap handling, which is built on top of the lower-level signalhandling mechanisms.

Structs§

CallThreadState
Temporary state stored on the stack which is registered in the tls module below for calls into wasm.
TlsRestore
Opaque state used to help control TLS state across stack switches for async support.

Enums§

Trap
Stores trace message with backtrace.

Functions§

catch_traps
Catches any wasm traps that happen within the execution of closure, returning them as a Result.
catch_traps_with_result
Catches any wasm traps that happen within the execution of closure, returning them as a Result, with the closure contents.
get_trap_handler
Returns pointer to the trap handler used in VMContext.
raise_lib_trap
Raises a trap from inside library code immediately.
raise_user_trap
Raises a user-defined trap immediately.
resume_panic
Carries a Rust panic across wasm code and resumes the panic on the other side.
wasmer_call_trampoline
Call the VM function pointed to by callee.