pub trait ElementRuntimeRegistry:
Send
+ Sync
+ Debug
+ 'static {
// Required method
fn runtime_for(&self, element: &Element) -> Result<Arc<dyn ElementRuntime>>;
}Expand description
Host-provided service pairing each Element declaration with a
concrete ElementRuntime. Dispatch is typically on the element’s
type label.
Required Methods§
Sourcefn runtime_for(&self, element: &Element) -> Result<Arc<dyn ElementRuntime>>
fn runtime_for(&self, element: &Element) -> Result<Arc<dyn ElementRuntime>>
Pick (or construct) a runtime for this element.