Struct actix_web::actix::actix::Response [−]
pub struct Response<I, E> { /* fields omitted */ }
Helper type for representing different type of message responses
Methods
impl<I, E> Response<I, E>
impl<I, E> Response<I, E>
pub fn async<T>(fut: T) -> Response<I, E> where
T: Future<Item = I, Error = E> + 'static,
pub fn async<T>(fut: T) -> Response<I, E> where
T: Future<Item = I, Error = E> + 'static,
Create async response
pub fn reply(val: Result<I, E>) -> Response<I, E>
pub fn reply(val: Result<I, E>) -> Response<I, E>
Create response
Trait Implementations
impl<A, M, I, E> MessageResponse<A, M> for Response<I, E> where
A: Actor,
E: 'static,
I: 'static,
M: Message<Result = Result<I, E>>,
<A as Actor>::Context: AsyncContext<A>,
impl<A, M, I, E> MessageResponse<A, M> for Response<I, E> where
A: Actor,
E: 'static,
I: 'static,
M: Message<Result = Result<I, E>>,
<A as Actor>::Context: AsyncContext<A>,
fn handle<R>(self, &mut <A as Actor>::Context, tx: Option<R>) where
R: ResponseChannel<M>,
fn handle<R>(self, &mut <A as Actor>::Context, tx: Option<R>) where
R: ResponseChannel<M>,