pub trait DynamicHostComponent: HostComponent {
    fn update_data(
        &self,
        data: &mut Self::Data,
        component: &AppComponent<'_>
    ) -> Result<()>; }
Expand description

A trait for “dynamic” Spin host components.

This extends HostComponent to support per-AppComponent dynamic runtime configuration.

Required Methods§

Called on AppComponent instance initialization.

The data returned by HostComponent::build_data is passed, along with a reference to the component being instantiated.

Implementations on Foreign Types§

Implementors§