Struct rotor_tools::sync::Mutexed [] [src]

pub struct Mutexed<M>(pub Arc<Mutex<M>>);

Trait Implementations

impl<M: Replaceable> Machine for Mutexed<M>
[src]

type Context = M::Context

Context type for the state machine Read more

type Seed = M::Seed

Seed is piece of data that is needed to initialize the machine Read more

fn create(seed: Self::Seed, scope: &mut Scope<M::Context>) -> Response<Self, Void>

Create a machine from some data Read more

fn ready(self, events: EventSet, scope: &mut Scope<M::Context>) -> Response<Self, Self::Seed>

Socket readiness notification

fn spawned(self, scope: &mut Scope<M::Context>) -> Response<Self, Self::Seed>

Called after spawn event Read more

fn timeout(self, scope: &mut Scope<M::Context>) -> Response<Self, Self::Seed>

Timeout happened

fn wakeup(self, scope: &mut Scope<M::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>

Called instead of spawned, if there is no slab space Read more