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 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more