Trait SpawnContext

Source
pub trait SpawnContext {
    type SpawnCtxt: 'static;

    // Required method
    fn spawn_ctxt(&mut self) -> Self::SpawnCtxt;
}
Expand description

A conversion trait for taking the Context and making a SpawnContext

This is necessary if you use the spawn variant of define_dispatch!.

Required Associated Types§

Source

type SpawnCtxt: 'static

The spawn context type

Required Methods§

Source

fn spawn_ctxt(&mut self) -> Self::SpawnCtxt

A method to convert the regular context into Self::SpawnCtxt

Implementors§