Struct actix::Response[][src]

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

Helper type for representing different type of message responses

Implementations

impl<I> Response<I>[src]

pub fn fut<T>(fut: T) -> Self where
    T: Future<Output = I> + 'static, 
[src]

Creates an asynchronous response.

pub fn reply(val: I) -> Self[src]

Creates a response.

Trait Implementations

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

impl<A, M> MessageResponse<A, M> for Response<M::Result> where
    A: Actor,
    M: Message
[src]

Auto Trait Implementations

impl<I> !RefUnwindSafe for Response<I>

impl<I> !Send for Response<I>

impl<I> !Sync for Response<I>

impl<I> Unpin for Response<I> where
    I: Unpin

impl<I> !UnwindSafe for Response<I>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.