[−][src]Trait wasmer_runtime_core::loader::Loader
The loader trait represents the functions used to load an instance.
Associated Types
type Instance: Instance
The type of Instance
for the loader.
type Error: Debug
The error type returned by the loader.
Required methods
fn load(
&self,
rm: &dyn RunnableModule,
module: &ModuleInfo,
ctx: &Ctx
) -> Result<Self::Instance, Self::Error>
&self,
rm: &dyn RunnableModule,
module: &ModuleInfo,
ctx: &Ctx
) -> Result<Self::Instance, Self::Error>
Loads the given module and context into an instance.