Struct rotor_tools::uniform::Uniform
[−]
[src]
pub struct Uniform<T: Action>(pub T);
pub struct Uniform<T: Action>(pub T);
impl<T, C, S> Spawner for Uniform<T> where T: Spawner<Seed=S> + Action<Seed=S, Context=C>
type Child = T::Child
type Seed = T::Seed
fn spawn(seed: Self::Seed, scope: &mut Scope<Self::Child::Context>) -> Response<Self::Child, Void>
impl<T: Action> Machine for Uniform<T>
type Context = T::Context
type Seed = T::Seed
fn create(seed: Self::Seed, scope: &mut Scope<Self::Context>) -> Response<Self, Void>
fn ready(self, _events: EventSet, scope: &mut Scope<Self::Context>) -> Response<Self, Self::Seed>
fn spawned(self, scope: &mut Scope<Self::Context>) -> Response<Self, Self::Seed>
fn timeout(self, scope: &mut Scope<Self::Context>) -> Response<Self, Self::Seed>
fn wakeup(self, scope: &mut Scope<Self::Context>) -> Response<Self, Self::Seed>
fn spawn_error(self, _scope: &mut Scope<Self::Context>, error: SpawnError<Self::Seed>) -> Response<Self, Self::Seed>