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