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