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<A, Output = ()> + 'static,
[src]
pub fn spawn<F>(&mut self, fut: F) -> SpawnHandle where
F: ActorFuture<A, Output = ()> + 'static,
[src]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.
Trait Implementations
Auto Trait Implementations
impl<A> !RefUnwindSafe for ContextParts<A>
impl<A> !Send for ContextParts<A>
impl<A> !Sync for ContextParts<A>
impl<A> Unpin for ContextParts<A>
impl<A> !UnwindSafe for ContextParts<A>