Skip to main content

FactorInstanceBuilder

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FactorInstanceBuilder for ()

Implementors§