pub struct OnDemandInstanceAllocator { /* private fields */ }
Expand description
Represents the on-demand instance allocator.
Implementations
Trait Implementations
sourceimpl Clone for OnDemandInstanceAllocator
impl Clone for OnDemandInstanceAllocator
sourcefn clone(&self) -> OnDemandInstanceAllocator
fn clone(&self) -> OnDemandInstanceAllocator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for OnDemandInstanceAllocator
impl Default for OnDemandInstanceAllocator
sourceimpl InstanceAllocator for OnDemandInstanceAllocator
impl InstanceAllocator for OnDemandInstanceAllocator
sourceunsafe 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
sourceunsafe 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
sourceunsafe fn deallocate(&self, handle: &InstanceHandle)
unsafe fn deallocate(&self, handle: &InstanceHandle)
Deallocates a previously allocated instance. Read more
sourcefn allocate_fiber_stack(&self) -> Result<FiberStack, FiberStackError>
fn allocate_fiber_stack(&self) -> Result<FiberStack, FiberStackError>
Allocates a fiber stack for calling async functions on.
sourceunsafe fn deallocate_fiber_stack(&self, _stack: &FiberStack)
unsafe fn deallocate_fiber_stack(&self, _stack: &FiberStack)
Deallocates a fiber stack that was previously allocated with allocate_fiber_stack
. Read more
sourcefn validate(&self, module: &Module) -> Result<()>
fn validate(&self, module: &Module) -> Result<()>
Validates that a module is supported by the allocator.
sourcefn 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
Auto Trait Implementations
impl !RefUnwindSafe for OnDemandInstanceAllocator
impl Send for OnDemandInstanceAllocator
impl Sync for OnDemandInstanceAllocator
impl Unpin for OnDemandInstanceAllocator
impl !UnwindSafe for OnDemandInstanceAllocator
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more