pub trait ConformanceModuleFactory: Debug + 'static {
// Required methods
fn package_id(&self) -> &'static str;
fn instantiate(
&self,
instance: &ModuleInstancePlan,
) -> Result<ConformanceModule, RuntimeFailure>;
// Provided method
fn package_version(&self) -> &'static str { ... }
}Expand description
Adapter-specific factory used only by the runtime conformance suite.
Required Methods§
fn package_id(&self) -> &'static str
fn instantiate( &self, instance: &ModuleInstancePlan, ) -> Result<ConformanceModule, RuntimeFailure>
Provided Methods§
fn package_version(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".