Struct tiny_tokio_actor::ActorRef
source · pub struct ActorRef<E: SystemEvent, A: Actor<E>> { /* private fields */ }Expand description
A clonable actor reference. It basically holds a Sender that can send messages to the mailbox (receiver) of the actor.
Implementations§
source§impl<E: SystemEvent, A: Actor<E>> ActorRef<E, A>
impl<E: SystemEvent, A: Actor<E>> ActorRef<E, A>
sourcepub fn get_path(&self) -> &ActorPath
👎Deprecated since 0.2.3: please use path instead
pub fn get_path(&self) -> &ActorPath
path insteadGet the path of this actor
sourcepub fn tell<M>(&self, msg: M) -> Result<(), ActorError>where
M: Message,
A: Handler<E, M>,
pub fn tell<M>(&self, msg: M) -> Result<(), ActorError>where
M: Message,
A: Handler<E, M>,
Fire and forget sending of messages to this actor.