Expand description
WebAssembly trap handling, which is built on top of the lower-level signalhandling mechanisms.
Structs§
- Call
Thread State - 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 aResult
. - catch_
traps_ ⚠with_ result - Catches any wasm traps that happen within the execution of
closure
, returning them as aResult
, 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
.