Struct actix::Context [] [src]

pub struct Context<A> where
    A: Actor<Context = Context<A>>, 
{ /* fields omitted */ }

Actor execution context

Trait Implementations

impl<A> ActorContext<A> for Context<A> where
    A: Actor<Context = Self>, 
[src]

[src]

Stop actor execution

[src]

Terminate actor execution

[src]

Actor execution state

[src]

Check if execution context is alive

[src]

Get actor address

impl<A> AsyncContext<A> for Context<A> where
    A: Actor<Context = Self>, 
[src]

[src]

Spawn async future into context. Returns handle of the item, could be used for cancelling execution. Read more

[src]

Spawn future into the context. Stop processing any of incoming events until this future resolves. Read more

[src]

Cancel future. idx is a value returned by spawn method.

[src]

This method allow to handle Future in similar way as normal actor messages. Read more

[src]

This method is similar to add_future but works with streams. Read more

[src]

Send message msg to self after specified period of time. Returns spawn handle which could be used for cancelation. Read more

[src]

Execute closure after specified period of time within same Actor and Context

impl<A> AsyncContextApi<A> for Context<A> where
    A: Actor<Context = Self>, 
[src]

[src]

impl<A> Debug for Context<A> where
    A: Actor<Context = Self>, 
[src]

[src]

Formats the value using the given formatter.

impl<A, M> ToEnvelope<A, M> for Context<A> where
    A: Actor<Context = Context<A>> + Handler<M>,
    M: ResponseType + Send + 'static,
    M::Item: Send,
    M::Error: Send
[src]

[src]

Pack message into envelope