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]
impl<A: Actor, I, E> ActorResponse<A, I, E>
pub fn reply(val: Result<I, E>) -> Self
[src]
pub fn reply(val: Result<I, E>) -> Self
Create response
pub fn async<T>(fut: T) -> Self where
T: ActorFuture<Item = I, Error = E, Actor = A> + 'static,
[src]
pub fn async<T>(fut: T) -> Self where
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]
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>,
fn handle<R: ResponseChannel<M>>(self, ctx: &mut A::Context, tx: Option<R>)
[src]
fn handle<R: ResponseChannel<M>>(self, ctx: &mut A::Context, tx: Option<R>)
Auto Trait Implementations
impl<A, I, E> !Send for ActorResponse<A, I, E>
impl<A, I, E> !Send for ActorResponse<A, I, E>
impl<A, I, E> !Sync for ActorResponse<A, I, E>
impl<A, I, E> !Sync for ActorResponse<A, I, E>