Trait wasmi::ModuleImportResolver
source · pub trait ModuleImportResolver {
// Provided methods
fn resolve_func(
&self,
field_name: &str,
_signature: &Signature
) -> Result<FuncRef, Error> { ... }
fn resolve_global(
&self,
field_name: &str,
_global_type: &GlobalDescriptor
) -> Result<GlobalRef, Error> { ... }
fn resolve_memory(
&self,
field_name: &str,
_memory_type: &MemoryDescriptor
) -> Result<MemoryRef, Error> { ... }
fn resolve_table(
&self,
field_name: &str,
_table_type: &TableDescriptor
) -> Result<TableRef, Error> { ... }
}
Expand description
Version of ImportResolver
specialized for a single module.
Provided Methods§
sourcefn resolve_func(
&self,
field_name: &str,
_signature: &Signature
) -> Result<FuncRef, Error>
fn resolve_func( &self, field_name: &str, _signature: &Signature ) -> Result<FuncRef, Error>
Resolve a function.
See ImportResolver::resolve_func
for details.
sourcefn resolve_global(
&self,
field_name: &str,
_global_type: &GlobalDescriptor
) -> Result<GlobalRef, Error>
fn resolve_global( &self, field_name: &str, _global_type: &GlobalDescriptor ) -> Result<GlobalRef, Error>
Resolve a global variable.
See ImportResolver::resolve_global
for details.
sourcefn resolve_memory(
&self,
field_name: &str,
_memory_type: &MemoryDescriptor
) -> Result<MemoryRef, Error>
fn resolve_memory( &self, field_name: &str, _memory_type: &MemoryDescriptor ) -> Result<MemoryRef, Error>
Resolve a memory.
See ImportResolver::resolve_memory
for details.
sourcefn resolve_table(
&self,
field_name: &str,
_table_type: &TableDescriptor
) -> Result<TableRef, Error>
fn resolve_table( &self, field_name: &str, _table_type: &TableDescriptor ) -> Result<TableRef, Error>
Resolve a table.
See ImportResolver::resolve_table
for details.