Struct wasmer::Store

source ·
pub struct Store { /* private fields */ }
Expand description

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.

The Store holds the engine (that is —amongst many things— used to compile the Wasm bytes into a valid module artifact), in addition to the Tunables (that are used to create the memories, tables and globals).

Spec: https://webassembly.github.io/spec/core/exec/runtime.html#store

Implementations§

Creates a new Store with a specific Engine.

👎Deprecated since 3.0.0: Store::new_with_engine has been deprecated in favor of Store::new

Creates a new Store with a specific Engine.

Set the trap handler in this store.

Creates a new Store with a specific Engine and Tunables.

Returns the Tunables.

Returns the Engine.

Checks whether two stores are identical. A store is considered equal to another store if both have the same engine. The tunables are excluded from the logic.

Trait Implementations§

Returns a StoreMut pointing to the underlying context.
Returns the ObjectMutable
Returns a StoreRef pointing to the underlying context.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Uses call to call a custom signal handler, if one is specified. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type for metadata in pointers and references to Self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
upcast ref
upcast mut ref
upcast boxed dyn
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more