Struct parity_wasm::ModuleInstance 
                   
                       [−]
                   
               [src]
pub struct ModuleInstance { /* fields omitted */ }Module instance.
Methods
impl ModuleInstance[src]
fn new(
    program: Weak<ProgramInstanceEssence>, 
    module: Module
) -> Result<Self, Error>
program: Weak<ProgramInstanceEssence>,
module: Module
) -> Result<Self, Error>
Instantiate given module within program context.
Trait Implementations
impl ModuleInstanceInterface for ModuleInstance[src]
fn execute_main(
    &self, 
    params: ExecutionParams
) -> Result<Option<RuntimeValue>, Error>
&self,
params: ExecutionParams
) -> Result<Option<RuntimeValue>, Error>
Execute start function of the module.
fn execute_index(
    &self, 
    index: u32, 
    params: ExecutionParams
) -> Result<Option<RuntimeValue>, Error>
&self,
index: u32,
params: ExecutionParams
) -> Result<Option<RuntimeValue>, Error>
Execute function with the given index.
fn execute_export(
    &self, 
    name: &str, 
    params: ExecutionParams
) -> Result<Option<RuntimeValue>, Error>
&self,
name: &str,
params: ExecutionParams
) -> Result<Option<RuntimeValue>, Error>
Execute function with the given export name.
fn export_entry(&self, name: &str) -> Result<Internal, Error>
Get export entry.
fn table(&self, index: ItemIndex) -> Result<Arc<TableInstance>, Error>
Get table reference.
fn memory(&self, index: ItemIndex) -> Result<Arc<MemoryInstance>, Error>
Get memory reference.
fn global(&self, index: ItemIndex) -> Result<Arc<VariableInstance>, Error>
Get global reference.
fn call_function(
    &self, 
    outer: CallerContext, 
    index: ItemIndex
) -> Result<Option<RuntimeValue>, Error>
&self,
outer: CallerContext,
index: ItemIndex
) -> Result<Option<RuntimeValue>, Error>
Call function with given index in functions index space.
fn call_function_indirect(
    &self, 
    outer: CallerContext, 
    table_index: ItemIndex, 
    type_index: u32, 
    func_index: u32
) -> Result<Option<RuntimeValue>, Error>
&self,
outer: CallerContext,
table_index: ItemIndex,
type_index: u32,
func_index: u32
) -> Result<Option<RuntimeValue>, Error>
Call function with given index in the given table.
fn call_internal_function(
    &self, 
    outer: CallerContext, 
    index: u32, 
    function_type: Option<&FunctionType>
) -> Result<Option<RuntimeValue>, Error>
&self,
outer: CallerContext,
index: u32,
function_type: Option<&FunctionType>
) -> Result<Option<RuntimeValue>, Error>
Call function with internal index.