Trait wasmtime_runtime::RuntimeMemoryCreator

source ·
pub trait RuntimeMemoryCreator: Send + Sync {
    // Required method
    fn new_memory(
        &self,
        plan: &MemoryPlan,
        minimum: usize,
        maximum: Option<usize>,
        memory_image: Option<&Arc<MemoryImage>>,
    ) -> Result<Box<dyn RuntimeLinearMemory>>;
}
Expand description

A memory allocator

Required Methods§

source

fn new_memory( &self, plan: &MemoryPlan, minimum: usize, maximum: Option<usize>, memory_image: Option<&Arc<MemoryImage>>, ) -> Result<Box<dyn RuntimeLinearMemory>>

Create new RuntimeLinearMemory

Implementors§