Trait actix::dev::MessageResponse[][src]

pub trait MessageResponse<A: Actor, M: Message> {
    fn handle<R: ResponseChannel<M>>(self, ctx: &mut A::Context, tx: Option<R>);
}

Trait which defines message response

Required Methods

Implementations on Foreign Types

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Implementors