Wasmtime
trap.hh File Reference
#include <wasmtime/error.hh>
#include <wasmtime/trap.h>

Go to the source code of this file.

Data Structures

class  wasmtime::FrameRef
 Non-owning reference to a WebAssembly function frame as part of a Trace More...
 
class  wasmtime::Trace
 An owned vector of FrameRef instances representing the WebAssembly call-stack on a trap. More...
 
class  wasmtime::Trap
 Information about a WebAssembly trap. More...
 
struct  wasmtime::TrapError
 Structure used to represent either a Trap or an Error. More...
 

Typedefs

template<typename T >
using wasmtime::TrapResult = Result< T, TrapError >
 

Typedef Documentation

◆ TrapResult

template<typename T >
using wasmtime::TrapResult = typedef Result<T, TrapError>

Result used by functions which can fail because of invariants being violated (such as a type error) as well as because of a WebAssembly trap.