Struct actix::dev::ContextParts [−][src]
pub struct ContextParts<A> where
A: Actor,
A::Context: AsyncContext<A>, { /* fields omitted */ }
Implementations
Initiate stop process for actor execution
Actor could prevent stopping by returning false
from
Actor::stopping()
method.
Actor execution state
Handle of the running future
pub fn spawn<F>(&mut self, fut: F) -> SpawnHandle where
F: ActorFuture<Output = (), Actor = A> + 'static,
pub fn spawn<F>(&mut self, fut: F) -> SpawnHandle where
F: ActorFuture<Output = (), Actor = A> + 'static,
Spawn new future to this context.
Spawn new future to this context and wait future completion.
During wait period actor does not receive any messages.
Cancel previously scheduled future.