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.

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V