An address to an actor is a way to send it a message. An address allows an actor to be sent any
kind of message that it can receive.
Address | An Address is a reference to an actor through which Message s can be
sent. It can be cloned to create more addresses to the same actor.
By default (i.e without specifying the second type parameter, Rc , to be
weak), Address es are strong. Therefore, when all Address es
are dropped, the actor will be stopped. In other words, any existing Address es will inhibit
the dropping of an actor. If this is undesirable, then a WeakAddress
should be used instead. An address is created by calling the
Actor::create or
Context::run methods, or by cloning another Address .
|
Disconnected | The actor is no longer running and disconnected from the sending address. For why this could
occur, see the Actor::stopping and
Actor::stopped methods.
|
DoSendFuture | The future returned from Address::do_send_async .
It resolves to Result<(), Disconnected> .
|
SendFuture | The future returned Address::send .
It resolves to Result<M::Result, Disconnected> .
|
WeakAddress | A WeakAddress is a reference to an actor through which Message s can be
sent. It can be cloned. Unlike Address , a WeakAddress will not inhibit
the dropping of an actor. It is created by the Address::downgrade
method.
|