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§

source

type Spawner

Spawner Type.

Required Methods§

source

fn spawner() -> Self::Spawner

Creates a spawner.

Implementors§

source§

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