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§
Required Methods§
Sourcefn spawn_ctxt(&mut self) -> Self::SpawnCtxt
fn spawn_ctxt(&mut self) -> Self::SpawnCtxt
A method to convert the regular context into Self::SpawnCtxt