Struct actix_web::HttpContext [] [src]

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

Http actor execution context

Methods

impl<A, S: 'static> HttpContext<A, S> where
    A: Actor<Context = Self>, 
[src]

[src]

[src]

[src]

impl<A, S> HttpContext<A, S> where
    A: Actor<Context = Self>, 
[src]

[src]

Shared application state

[src]

Incoming request

[src]

Write payload

[src]

Indicate end of streaming payload. Also this method calls Self::close.

[src]

Returns drain future

[src]

Check if connection still open

Trait Implementations

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

[src]

Gracefully stop actor execution

[src]

Terminate actor execution

[src]

Actor execution state

[src]

Check if execution context is alive

impl<A, S> AsyncContext<A> for HttpContext<A, S> 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]

Get actor address

[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]

This method is similar to add_stream but it skips errors.

[src]

Send message msg to self.

[src]

Send message msg to self after specified period of time. Returns spawn handle which could be used for cancellation. Notification get cancelled if context's stop method get called. Read more

[src]

Execute closure after specified period of time within same Actor and Context. Execution get cancelled if context's stop method get called. Read more

impl<A, S> ToEnvelope<A> for HttpContext<A, S> where
    A: Actor<Context = HttpContext<A, S>>, 
[src]

[src]

Pack message into suitable envelope