[][src]Trait xtra_addons::Message

pub trait Message: 'static + Send {
    type Result: Send;
}

A message that can be sent to an Actor for processing. They are processed one at a time. Only actors implementing the corresponding Handler<M> trait can be sent a given message.

Example

struct MyResult;
struct MyMessage;

impl Message for MyMessage {
    type Result = MyResult;
}

Associated Types

type Result: Send[src]

The return type of the message. It will be returned when the Address::send method is called.

Loading content...

Implementors

Loading content...