Trait wasmer_runtime_core_fl::loader::Loader[][src]

pub trait Loader {
    type Instance: Instance;
    type Error: Debug;
    fn load(
        &self,
        rm: &dyn RunnableModule,
        module: &ModuleInfo,
        ctx: &Ctx
    ) -> Result<Self::Instance, Self::Error>; }
Expand description

The loader trait represents the functions used to load an instance.

Associated Types

The type of Instance for the loader.

The error type returned by the loader.

Required methods

Loads the given module and context into an instance.

Implementors