[][src]Trait substrate_wasmtime_jit::Resolver

pub trait Resolver {
    fn resolve(
        &mut self,
        index: u32,
        module: &str,
        field: &str
    ) -> Option<Export>; }

Import resolver connects imports with available exported values.

Required methods

fn resolve(&mut self, index: u32, module: &str, field: &str) -> Option<Export>

Resolves an import a WebAssembly module to an export it's hooked up to.

The index provided is the index of the import in the wasm module that's being resolved. For example 1 means that it's the second import listed in the wasm module.

The module and field arguments provided are the module/field names listed on the import itself.

Loading content...

Implementors

impl Resolver for NullResolver[src]

Loading content...