Trait parity_wasm::ModuleInstanceInterface [] [src]

pub trait ModuleInstanceInterface {
    fn execute_main(
        &self,
        params: ExecutionParams
    ) -> Result<Option<RuntimeValue>, Error>; fn execute_index(
        &self,
        index: u32,
        params: ExecutionParams
    ) -> Result<Option<RuntimeValue>, Error>; fn execute_export(
        &self,
        name: &str,
        params: ExecutionParams
    ) -> Result<Option<RuntimeValue>, Error>; fn export_entry(&self, name: &str) -> Result<Internal, Error>; fn table(&self, index: ItemIndex) -> Result<Arc<TableInstance>, Error>; fn memory(&self, index: ItemIndex) -> Result<Arc<MemoryInstance>, Error>; fn global(&self, index: ItemIndex) -> Result<Arc<VariableInstance>, Error>; fn call_function(
        &self,
        outer: CallerContext,
        index: ItemIndex
    ) -> Result<Option<RuntimeValue>, Error>; fn call_function_indirect(
        &self,
        outer: CallerContext,
        table_index: ItemIndex,
        type_index: u32,
        func_index: u32
    ) -> Result<Option<RuntimeValue>, Error>; fn call_internal_function(
        &self,
        outer: CallerContext,
        index: u32,
        function_type: Option<&FunctionType>
    ) -> Result<Option<RuntimeValue>, Error>; }

Module instance API.

Required Methods

Execute start function of the module.

Execute function with the given index.

Execute function with the given export name.

Get export entry.

Get table reference.

Get memory reference.

Get global reference.

Call function with given index in functions index space.

Call function with given index in the given table.

Call function with internal index.

Implementors