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
Auto Trait Implementations§
impl RefUnwindSafe for DefaultMemoryCreator
impl Send for DefaultMemoryCreator
impl Sync for DefaultMemoryCreator
impl Unpin for DefaultMemoryCreator
impl UnwindSafe for DefaultMemoryCreator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more