Skip to main content

ElementRuntimeRegistry

Trait ElementRuntimeRegistry 

Source
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§

Source

fn runtime_for(&self, element: &Element) -> Result<Arc<dyn ElementRuntime>>

Pick (or construct) a runtime for this element.

Implementors§