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

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

Trait Implementations

impl<M: Replaceable> Machine for Mutexed<M>

type Context = M::Context

type Seed = M::Seed

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

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

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

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

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

fn spawn_error(self, _scope: &mut Scope<Self::Context>, error: SpawnError<Self::Seed>) -> Response<Self, Self::Seed>