pub trait ModuleRuntime {
// Required method
fn make_actor(&self, mcc: ModuleCreationContext<'_>) -> Result<impl Module>;
}Expand description
A runtime that can create modules.
Required Methods§
Sourcefn make_actor(&self, mcc: ModuleCreationContext<'_>) -> Result<impl Module>
fn make_actor(&self, mcc: ModuleCreationContext<'_>) -> Result<impl Module>
Creates a module based on the context mcc.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.