wasmtime_store Struct Reference

Storage of WebAssembly objects. More...

#include <store.h>

Detailed Description

Storage of WebAssembly objects.

A store is the unit of isolation between WebAssembly instances in an embedding of Wasmtime. Values in one wasmtime_store_t cannot flow into another wasmtime_store_t. Stores are cheap to create and cheap to dispose. It's expected that one-off stores are common in embeddings.

Objects stored within a wasmtime_store_t are referenced with integer handles rather than interior pointers. This means that most APIs require that the store be explicitly passed in, which is done via wasmtime_context_t. It is safe to move a wasmtime_store_t to any thread at any time. A store generally cannot be concurrently used, however.

The documentation for this struct was generated from the following file: