Trait actix::prelude::Message

source ·
pub trait Message {
    type Result: 'static;
}
Expand description

Represent message that can be handled by an actor.

Required Associated Types§

source

type Result: 'static

The type of value that this message will resolved with if it is successful.

Implementations on Foreign Types§

source§

impl<M> Message for Box<M>
where M: Message,

Allow users to use Box<M> as a message without having to re-impl Message

§

type Result = <M as Message>::Result

source§

impl<M> Message for Arc<M>
where M: Message,

Allow users to use Arc<M> as a message without having to re-impl Message

§

type Result = <M as Message>::Result

Implementors§