pub struct OnDemandInstanceAllocator { /* private fields */ }
Expand description
Represents the on-demand instance allocator.
Implementations§
Trait Implementations§
source§impl Clone for OnDemandInstanceAllocator
impl Clone for OnDemandInstanceAllocator
source§fn clone(&self) -> OnDemandInstanceAllocator
fn clone(&self) -> OnDemandInstanceAllocator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for OnDemandInstanceAllocator
impl Default for OnDemandInstanceAllocator
source§impl InstanceAllocator for OnDemandInstanceAllocator
impl InstanceAllocator for OnDemandInstanceAllocator
source§unsafe fn allocate(
&self,
req: InstanceAllocationRequest<'_>
) -> Result<InstanceHandle>
unsafe fn allocate( &self, req: InstanceAllocationRequest<'_> ) -> Result<InstanceHandle>
Allocates an instance for the given allocation request. Read more
source§unsafe fn initialize(
&self,
handle: &mut InstanceHandle,
module: &Module,
is_bulk_memory: bool
) -> Result<()>
unsafe fn initialize( &self, handle: &mut InstanceHandle, module: &Module, is_bulk_memory: bool ) -> Result<()>
Finishes the instantiation process started by an instance allocator. Read more
source§unsafe fn deallocate(&self, handle: &InstanceHandle)
unsafe fn deallocate(&self, handle: &InstanceHandle)
Deallocates a previously allocated instance. Read more
source§fn purge_module(&self, _: CompiledModuleId)
fn purge_module(&self, _: CompiledModuleId)
Purges all lingering resources related to
module
from within this
allocator. Read more