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

Trait Spawnable

pub trait Spawnable {
    type Spawner;

    // Required method
    fn spawner() -> Self::Spawner;
}
Expand description

A Worker that can be spawned by a spawner.

Required Associated Types§

type Spawner

Spawner Type.

Required Methods§

fn spawner() -> Self::Spawner

Creates a spawner.

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§

§

impl<W> Spawnable for W
where W: Worker + 'static,

§

type Spawner = WorkerSpawner<W>