Struct wasmtime_runtime::DefaultMemoryCreator
source · [−]pub struct DefaultMemoryCreator;
Expand description
A default memory allocator used by Wasmtime
Trait Implementations
sourceimpl RuntimeMemoryCreator for DefaultMemoryCreator
impl RuntimeMemoryCreator for DefaultMemoryCreator
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more