Module store

Source
Expand description

Defines the Store data type and various useful traits and data types to interact with a store.

Re-exportsยง

pub use async_::*;
pub use store_ref::*;
pub use obj::*;

Modulesยง

async_ ๐Ÿ”’
Defines the AsStoreAsync trait and its supporting types.
context ๐Ÿ”’
Defines the StoreContext type. Thread-local storage for storing the current store context, i.e. the currently active Store(s). When a function is called, a pointer to the StoreInner in placed inside the store context so it can be retrieved when needed. This lets code that needs access to the store get it with just the store ID.
inner ๐Ÿ”’
Defines the StoreInner data type.
local_rwlock ๐Ÿ”’
Single-threaded async-aware RwLock. A single-threaded async-aware RwLock implementation.
obj ๐Ÿ”’
store_ref ๐Ÿ”’
Create temporary handles to engines.

Structsยง

Store
The store represents all global state that can be manipulated by WebAssembly programs. It consists of the runtime representation of all instances of functions, tables, memories, and globals that have been allocated during the lifetime of the abstract machine.