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,
}

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.

lookup_shared_signature: &'a dyn Fn(SignatureIndex) -> VMSharedSignatureIndex

A callback for looking up shared signature indexes.

host_state: Box<dyn Any>

The host state to associate with the instance.

interrupts: *const VMInterrupts

The pointer to the VM interrupts structure to use for the instance.

externref_activations_table: *mut VMExternRefActivationsTable

The pointer to the reference activations table to use for the instance.

stack_map_registry: *mut StackMapRegistry

The pointer to the stack map registry to use for the instance.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,