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, InstantiationError>
unsafe fn allocate(
&self,
req: InstanceAllocationRequest<'_>
) -> Result<InstanceHandle, InstantiationError>
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<(), InstantiationError>
unsafe fn initialize(
&self,
handle: &mut InstanceHandle,
module: &Module,
is_bulk_memory: bool
) -> Result<(), InstantiationError>
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 validate(&self, module: &Module) -> Result<()>
fn validate(&self, module: &Module) -> Result<()>
Validates that a module is supported by the allocator.
source§fn adjust_tunables(&self, tunables: &mut Tunables)
fn adjust_tunables(&self, tunables: &mut Tunables)
Adjusts the tunables prior to creation of any JIT compiler. Read more