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
fn handle<R: ResponseChannel<M>>(self, ctx: &mut A::Context, tx: Option<R>)
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, E: 'static> MessageResponse<A, M> for Result<I, E> where
A: Actor,
M: Message<Result = Result<I, E>>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M, I: 'static> MessageResponse<A, M> for Option<I> where
A: Actor,
M: Message<Result = Option<I>>, [src]
impl<A, M, I: 'static> MessageResponse<A, M> for Option<I> where
A: Actor,
M: Message<Result = Option<I>>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for () where
A: Actor,
M: Message<Result = ()>, [src]
impl<A, M> MessageResponse<A, M> for () where
A: Actor,
M: Message<Result = ()>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for u8 where
A: Actor,
M: Message<Result = u8>, [src]
impl<A, M> MessageResponse<A, M> for u8 where
A: Actor,
M: Message<Result = u8>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for u16 where
A: Actor,
M: Message<Result = u16>, [src]
impl<A, M> MessageResponse<A, M> for u16 where
A: Actor,
M: Message<Result = u16>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for u32 where
A: Actor,
M: Message<Result = u32>, [src]
impl<A, M> MessageResponse<A, M> for u32 where
A: Actor,
M: Message<Result = u32>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for u64 where
A: Actor,
M: Message<Result = u64>, [src]
impl<A, M> MessageResponse<A, M> for u64 where
A: Actor,
M: Message<Result = u64>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for usize where
A: Actor,
M: Message<Result = usize>, [src]
impl<A, M> MessageResponse<A, M> for usize where
A: Actor,
M: Message<Result = usize>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for i8 where
A: Actor,
M: Message<Result = i8>, [src]
impl<A, M> MessageResponse<A, M> for i8 where
A: Actor,
M: Message<Result = i8>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for i16 where
A: Actor,
M: Message<Result = i16>, [src]
impl<A, M> MessageResponse<A, M> for i16 where
A: Actor,
M: Message<Result = i16>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for i32 where
A: Actor,
M: Message<Result = i32>, [src]
impl<A, M> MessageResponse<A, M> for i32 where
A: Actor,
M: Message<Result = i32>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for i64 where
A: Actor,
M: Message<Result = i64>, [src]
impl<A, M> MessageResponse<A, M> for i64 where
A: Actor,
M: Message<Result = i64>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for isize where
A: Actor,
M: Message<Result = isize>, [src]
impl<A, M> MessageResponse<A, M> for isize where
A: Actor,
M: Message<Result = isize>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for f32 where
A: Actor,
M: Message<Result = f32>, [src]
impl<A, M> MessageResponse<A, M> for f32 where
A: Actor,
M: Message<Result = f32>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for f64 where
A: Actor,
M: Message<Result = f64>, [src]
impl<A, M> MessageResponse<A, M> for f64 where
A: Actor,
M: Message<Result = f64>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for String where
A: Actor,
M: Message<Result = String>, [src]
impl<A, M> MessageResponse<A, M> for String where
A: Actor,
M: Message<Result = String>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)impl<A, M> MessageResponse<A, M> for bool where
A: Actor,
M: Message<Result = bool>, [src]
impl<A, M> MessageResponse<A, M> for bool where
A: Actor,
M: Message<Result = bool>, fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)[src]
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)Implementors
impl<A, M> MessageResponse<A, M> for MessageResult<M> where
A: Actor,
M: Message,impl<A, M, B> MessageResponse<A, M> for Addr<B> where
A: Actor,
M: Message<Result = Addr<B>>,
B: Actor<Context = Context<B>>,impl<A, M, I: 'static, E: 'static> MessageResponse<A, M> for ResponseActFuture<A, I, E> where
A: Actor,
M: Message<Result = Result<I, E>>,
A::Context: AsyncContext<A>,impl<A, M, I: 'static, E: 'static> MessageResponse<A, M> for ResponseFuture<I, E> where
A: Actor,
M::Result: Send,
M: Message<Result = Result<I, E>>,
A::Context: AsyncContext<A>,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>,impl<A, M, I: 'static, E: 'static> MessageResponse<A, M> for ActorResponse<A, I, E> where
A: Actor,
M: Message<Result = Result<I, E>>,
A::Context: AsyncContext<A>,