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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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