Struct wasmtime_runtime::DefaultMemoryCreator
source · pub struct DefaultMemoryCreator;
Expand description
A default memory allocator used by Wasmtime
Trait Implementations§
source§impl RuntimeMemoryCreator for DefaultMemoryCreator
impl RuntimeMemoryCreator for DefaultMemoryCreator
source§fn new_memory(
&self,
plan: &MemoryPlan,
minimum: usize,
maximum: Option<usize>,
memory_image: Option<&Arc<MemoryImage>>
) -> Result<Box<dyn RuntimeLinearMemory>>
fn new_memory( &self, plan: &MemoryPlan, minimum: usize, maximum: Option<usize>, memory_image: Option<&Arc<MemoryImage>> ) -> Result<Box<dyn RuntimeLinearMemory>>
Create new MmapMemory