Struct actix::prelude::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]
A: Actor,
M: ResponseType,
fn reply(val: M::Item) -> Self
[src]
Create response
fn async_reply<T>(fut: T) -> Self where
T: ActorFuture<Item = M::Item, Error = M::Error, Actor = A> + Sized + 'static,
[src]
T: ActorFuture<Item = M::Item, Error = M::Error, Actor = A> + Sized + 'static,
Create async response
fn empty() -> Self where
M: ResponseType<Item = ()>,
[src]
M: ResponseType<Item = ()>,
Create unit response
fn error(err: M::Error) -> Self
[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]
A: Actor + Handler<M>,
M: ResponseType,
T: ActorFuture<Item = M::Item, Error = M::Error, Actor = A> + Sized + 'static,
Helper trait that converts compatible ActorFuture
type to Response
.