[][src]Struct actix_web::actix::Response

pub struct Response<I, E> { /* fields omitted */ }

Helper type for representing different type of message responses

Methods

impl<I, E> Response<I, E>[src]

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

Create async response

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

Create response

Trait Implementations

impl<I, E> Debug for Response<I, E>[src]

impl<A, M, I, E> MessageResponse<A, M> for Response<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<I, E> !Send for Response<I, E>

impl<I, E> !Sync for Response<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