Module wasmer_vm::traphandlers[][src]

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.

Traits

A package of functionality needed by catch_traps to figure out what to do when handling a trap.

Functions

Catches any wasm traps that happen within the execution of closure, returning them as a Result.

Catches any wasm traps that happen within the execution of closure, returning them as a Result, with the closure contents.

Returns pointer to the trap handler used in VMContext.

This function is required to be called before any WebAssembly is entered. This will configure global state such as signal handlers to prepare the process to receive wasm traps.

A module for registering a custom alternate signal stack (sigaltstack).

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 wasm function pointed to by callee.

Type Definitions

Function which may handle custom signals while processing traps.