Struct actix::ActorResponse
[−]
[src]
pub struct ActorResponse<A, I, E> { /* fields omitted */ }
Helper type for representing different type of message responses
Methods
impl<A: Actor, I, E> ActorResponse<A, I, E>
[src]
pub fn reply(val: Result<I, E>) -> Self
[src]
Create response
pub fn async<T>(fut: T) -> Self where
T: ActorFuture<Item = I, Error = E, Actor = A> + 'static,
[src]
T: ActorFuture<Item = I, Error = E, Actor = A> + 'static,
Create async response
Trait Implementations
impl<A, M, I: 'static, E: 'static> MessageResponse<A, M> for ActorResponse<A, I, E> where
A: Actor,
M: Message<Result = Result<I, E>>,
A::Context: AsyncContext<A>,
[src]
A: Actor,
M: Message<Result = Result<I, E>>,
A::Context: AsyncContext<A>,