actix::prelude

Trait 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

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

Implementors§