Trait actors::ActorRef [-] [+] [src]

pub trait ActorRef<Message: Send>: Send {
    fn send(&self, msg: Message);
}

A handle for passing messages to an actor.

All communication between actors should use this interface.

Required Methods

fn send(&self, msg: Message)

Send a message to the reference actor.

Depending on the type of the actorRef that might or might not guarantee delivery of the message. Also, the actor might not be alive anymore.

Implementors