pub trait Store<WB: WasmBackend>: AsContextMut<WB> {
    // Required methods
    fn new(backend: &WB) -> Self;
    fn set_total_memory_limit(&mut self, total_memory_limit: u64);
    fn report_memory_allocation_stats(&self) -> Option<MemoryAllocationStats>;
    fn clear_allocation_stats(&mut self);
}
Expand description

Store is an object that stores modules, instances, functions memories and so on. Store is grow-only: once something added, it will not be removed until Store is destroyed. Some of the implementations can limit allocated resources. For example, Wasmtime cannot have more than 10000 instances in one Store.

Most of the functions in this crate require a handle to Store to work.

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§