This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.
yew_agent::reactor

Trait Reactor

pub trait Reactor: Future<Output = ()> {
    type Scope: ReactorScoped;

    // Required method
    fn create(scope: Self::Scope) -> Self;
}
Expand description

A reactor worker.

Required Associated Types§

type Scope: ReactorScoped

The Reactor Scope

Required Methods§

fn create(scope: Self::Scope) -> Self

Creates a reactor worker.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§