Struct wasmer::Store [−][src]
pub struct Store { /* fields omitted */ }
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
impl Store
[src]
impl Store
[src]pub fn new<E: ?Sized>(engine: &E) -> Self where
E: Engine,
[src]
pub fn new<E: ?Sized>(engine: &E) -> Self where
E: Engine,
[src]Creates a new Store
with a specific Engine
.
pub fn set_trap_handler(&self, handler: Option<Box<TrapHandlerFn>>)
[src]
pub fn set_trap_handler(&self, handler: Option<Box<TrapHandlerFn>>)
[src]Set the trap handler in this store.
Trait Implementations
impl MemoryUsage for Store
[src]
impl MemoryUsage for Store
[src]fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
[src]
fn size_of_val(&self, visited: &mut dyn MemoryUsageTracker) -> usize
[src]Returns the size of the referenced value in bytes. Read more
impl TrapHandler for Store
[src]
impl TrapHandler for Store
[src]fn custom_trap_handler(&self, call: &dyn Fn(&TrapHandlerFn) -> bool) -> bool
[src]
fn custom_trap_handler(&self, call: &dyn Fn(&TrapHandlerFn) -> bool) -> bool
[src]Uses call
to call a custom signal handler, if one is specified. Read more
impl Send for Store
[src]
impl Sync for Store
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more