Skip to main content

HostProviderComponent

Trait HostProviderComponent 

Source
pub trait HostProviderComponent:
    Send
    + Sync
    + 'static {
    type Stores: Default + 'static;
    type RunState: 'static;

    const ID: &'static str;
}
Expand description

A statically composed Rust provider component.

Required Associated Constants§

Source

const ID: &'static str

Stable component identity used in initialization diagnostics.

Required Associated Types§

Source

type Stores: Default + 'static

External stores owned by this component.

Source

type RunState: 'static

Caller-owned mutable state used while executing this component.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§