[][src]Struct 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 future<T>(fut: T) -> Self where
    T: Future<Item = I, Error = E> + 'static, 
[src]

Creates an asynchronous response.

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

Creates a response.

Trait Implementations

impl<A, M, I: 'static, E: 'static> MessageResponse<A, M> for Response<I, E> where
    A: Actor,
    M: Message<Result = Result<I, E>>,
    A::Context: AsyncContext<A>, 
[src]

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

Auto Trait Implementations

impl<I, E> !Send for Response<I, E>

impl<I, E> !Sync for Response<I, E>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T