Struct rotor_stream::sync::Mutexed
[−]
[src]
pub struct Mutexed<M>(pub Arc<Mutex<M>>);
pub struct Mutexed<M>(pub Arc<Mutex<M>>);
impl<M> Machine for Mutexed<M> where M: Replaceable
type Context = M::Context
type Seed = M::Seed
fn create(seed: Mutexed<M>::Seed, scope: &mut Scope<M::Context>) -> Response<Mutexed<M>, Void>
fn ready(self, events: EventSet, scope: &mut Scope<M::Context>) -> Response<Mutexed<M>, Mutexed<M>::Seed>
fn spawned(self, scope: &mut Scope<M::Context>) -> Response<Mutexed<M>, Mutexed<M>::Seed>
fn timeout(self, scope: &mut Scope<M::Context>) -> Response<Mutexed<M>, Mutexed<M>::Seed>
fn wakeup(self, scope: &mut Scope<M::Context>) -> Response<Mutexed<M>, Mutexed<M>::Seed>
fn spawn_error(self, _scope: &mut Scope<Self::Context>, error: SpawnError<Self::Seed>) -> Response<Self, Self::Seed>