[][src]Module lucet_runtime::vmctx

Functions for manipulating instances from hostcalls.

The Lucet compiler inserts an extra *mut lucet_vmctx argument to all functions defined and called by WebAssembly code. Through this pointer, code running in the guest context can access and manipulate the instance and its structures. These functions are intended for use in hostcall implementations, and must only be used from within a running guest.

Panics

All of the Vmctx methods will panic if the Vmctx was not created from a valid pointer associated with a running instance. This should never occur if run in guest code on the pointer argument inserted by the compiler.

Structs

Vmctx

An opaque handle to a running instance's context.

lucet_vmctx

Marker type for the vmctx pointer argument.