pub trait Loader {
type Instance: Instance;
type Error: Debug;
// Required method
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.