spin_factors

Trait FactorInstanceBuilder

Source
pub trait FactorInstanceBuilder: Any {
    type InstanceState: Send + 'static;

    // Required method
    fn build(self) -> Result<Self::InstanceState>;
}
Expand description

A builder for a Factor’s per instance state.

Required Associated Types§

Source

type InstanceState: Send + 'static

The per instance state of the factor.

This is equivalent to the existing HostComponent::Data and ends up being stored in the wasmtime::Store. Any bindgen traits for this factor will be implemented on this type.

Required Methods§

Source

fn build(self) -> Result<Self::InstanceState>

Build the per instance state of the factor.

Implementations on Foreign Types§

Source§

impl FactorInstanceBuilder for ()

Implementors§