[][src]Struct actix_web::actix::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
[src]

pub fn reply(val: Result<I, E>) -> ActorResponse<A, I, E>[src]

Create response

pub fn async<T>(fut: T) -> ActorResponse<A, I, E> where
    T: ActorFuture<Item = I, Error = E, Actor = A> + 'static, 
[src]

Create async response

Trait Implementations

impl<A, I, E> Debug for ActorResponse<A, I, E>[src]

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>, 
[src]

Auto Trait Implementations

impl<A, I, E> !Send for ActorResponse<A, I, E>

impl<A, I, E> !Sync for ActorResponse<A, I, E>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T