Struct actix::Response [] [src]

pub struct Response<A, M> where
    A: Actor,
    M: ResponseType
{ /* fields omitted */ }

Response represents asyncronous message handling process.

Methods

impl<A, M> Response<A, M> where
    A: Actor,
    M: ResponseType
[src]

[src]

Create response

[src]

Create async response

[src]

Create unit response

[src]

Create error response

Trait Implementations

impl<A, M, T> From<T> for Response<A, M> where
    A: Actor + Handler<M>,
    M: ResponseType,
    T: ActorFuture<Item = M::Item, Error = M::Error, Actor = A> + Sized + 'static, 
[src]

Helper trait that converts compatible ActorFuture type to Response.

[src]

Performs the conversion.