Struct rotor_tools::uniform::Uniform
[−]
[src]
pub struct Uniform<T: Action>(pub T);
Trait Implementations
impl<T, C, S> Spawner for Uniform<T> where
T: Spawner<Seed = S> + Action<Seed = S, Context = C>,
[src]
T: Spawner<Seed = S> + Action<Seed = S, Context = C>,
type Child = T::Child
type Seed = <T as Spawner>::Seed
fn spawn(
seed: Self::Seed,
scope: &mut Scope<<Self::Child as Machine>::Context>
) -> Response<Self::Child, Void>
seed: Self::Seed,
scope: &mut Scope<<Self::Child as Machine>::Context>
) -> Response<Self::Child, Void>
impl<T: Action> Machine for Uniform<T>
[src]
type Context = T::Context
Context type for the state machine Read more
type Seed = T::Seed
Seed is piece of data that is needed to initialize the machine Read more
fn create(
seed: Self::Seed,
scope: &mut Scope<Self::Context>
) -> Response<Self, Void>
seed: Self::Seed,
scope: &mut Scope<Self::Context>
) -> Response<Self, Void>
Create a machine from some data Read more
fn ready(
self,
_events: EventSet,
scope: &mut Scope<Self::Context>
) -> Response<Self, Self::Seed>
self,
_events: EventSet,
scope: &mut Scope<Self::Context>
) -> Response<Self, Self::Seed>
Socket readiness notification
fn spawned(self, scope: &mut Scope<Self::Context>) -> Response<Self, Self::Seed>
Called after spawn event Read more
fn timeout(self, scope: &mut Scope<Self::Context>) -> Response<Self, Self::Seed>
Timeout happened
fn wakeup(self, scope: &mut Scope<Self::Context>) -> Response<Self, Self::Seed>
Message received Read more
fn spawn_error(
self,
_scope: &mut Scope<Self::Context>,
error: SpawnError<Self::Seed>
) -> Response<Self, Self::Seed>
self,
_scope: &mut Scope<Self::Context>,
error: SpawnError<Self::Seed>
) -> Response<Self, Self::Seed>
Called instead of spawned, if there is no slab space Read more