Struct actix::Response [−][src]
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>) -> Self
Create 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>,