Skip to main content

Module runtime

Module runtime 

Source
Expand description

The behavioural surface of an element.

Element is declarative; ElementRuntime is behavioural. The executor pairs each element with a concrete ElementRuntime implementation (via ElementRuntimeRegistry) at execution time and calls into this trait to materialize, observe, and tear down resources.

The trait uses the async_trait attribute pending stable async-fn-in-dyn-trait (SRD-0007 D19). All implementations live in the hyperplane tier; paramodel defines the trait shape.

Structs§

MaterializationOutputs
Typed values an element publishes after materialization. Keyed by result_parameters names; consumed by downstream elements that reference the export via tokens.
ResolvedConfiguration
Fully-interpolated configuration values handed to ElementRuntime::materialize. Every entry is a concrete Value; all tokens have been resolved.
TrialContext
Read-only trial context passed to ElementRuntime lifecycle hooks.

Traits§

ElementRuntime
The async behavioural surface of an element.
ElementRuntimeRegistry
Host-provided service pairing each Element declaration with a concrete ElementRuntime. Dispatch is typically on the element’s type label.
StateObservation
Handle returned by ElementRuntime::observe_state. Calling Self::cancel removes the listener.

Type Aliases§

StateTransitionListener
Listener callback for ElementRuntime::observe_state.