Struct wasmtime_runtime::InstanceAllocationRequest [−][src]
pub struct InstanceAllocationRequest<'a> {
pub module: Arc<Module>,
pub finished_functions: &'a PrimaryMap<DefinedFuncIndex, *mut [VMFunctionBody]>,
pub imports: Imports<'a>,
pub lookup_shared_signature: &'a dyn Fn(SignatureIndex) -> VMSharedSignatureIndex,
pub host_state: Box<dyn Any>,
pub interrupts: *const VMInterrupts,
pub externref_activations_table: *mut VMExternRefActivationsTable,
pub stack_map_registry: *mut StackMapRegistry,
}Expand description
Represents a request for a new runtime instance.
Fields
module: Arc<Module>The module being instantiated.
finished_functions: &'a PrimaryMap<DefinedFuncIndex, *mut [VMFunctionBody]>The finished (JIT) functions for the module.
imports: Imports<'a>The imports to use for the instantiation.
A callback for looking up shared signature indexes.
host_state: Box<dyn Any>The host state to associate with the instance.
interrupts: *const VMInterruptsThe pointer to the VM interrupts structure to use for the instance.
externref_activations_table: *mut VMExternRefActivationsTableThe pointer to the reference activations table to use for the instance.
stack_map_registry: *mut StackMapRegistryThe pointer to the stack map registry to use for the instance.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for InstanceAllocationRequest<'a>
impl<'a> !Send for InstanceAllocationRequest<'a>
impl<'a> !Sync for InstanceAllocationRequest<'a>
impl<'a> Unpin for InstanceAllocationRequest<'a>
impl<'a> !UnwindSafe for InstanceAllocationRequest<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,