Struct cosworth::prelude::ActixSyncArbiter
source · pub struct ActixSyncArbiter<A>where
A: Actor<Context = SyncContext<A>>,{ /* private fields */ }
Expand description
Sync arbiter
Implementations§
Trait Implementations§
source§impl<A> Actor for SyncArbiter<A>where
A: Actor<Context = SyncContext<A>>,
impl<A> Actor for SyncArbiter<A>where
A: Actor<Context = SyncContext<A>>,
§type Context = Context<SyncArbiter<A>>
type Context = Context<SyncArbiter<A>>
Actor execution context type
source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Method is called when actor get polled first time.
source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Method is called after an actor is in
Actor::Stopping
state. There
could be several reasons for stopping. Context::stop
get called
by the actor itself. All addresses to current actor get dropped and
no more evented objects left in the context. Read moresource§fn stopped(&mut self, ctx: &mut Self::Context)
fn stopped(&mut self, ctx: &mut Self::Context)
Method is called after an actor is stopped, it can be used to perform
any needed cleanup work or spawning more actors. This is final state,
after this call actor get dropped. Read more
Auto Trait Implementations§
impl<A> !RefUnwindSafe for SyncArbiter<A>
impl<A> Send for SyncArbiter<A>
impl<A> Sync for SyncArbiter<A>
impl<A> Unpin for SyncArbiter<A>
impl<A> !UnwindSafe for SyncArbiter<A>
Blanket Implementations§
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read moresource§impl<F, A> WrapFuture<A> for Fwhere
F: Future,
A: Actor,
impl<F, A> WrapFuture<A> for Fwhere
F: Future,
A: Actor,
§type Future = FutureWrap<F, A>
type Future = FutureWrap<F, A>
The future that this type can be converted into.
source§fn into_actor(self, _: &A) -> <F as WrapFuture<A>>::Future
fn into_actor(self, _: &A) -> <F as WrapFuture<A>>::Future
Convert normal future to a ActorFuture