Type Alias xtra::address::WeakAddress
source · pub type WeakAddress<A> = Address<A, Weak>;
Expand description
A WeakAddress
is a reference to an actor through which messages 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.
Aliased Type§
struct WeakAddress<A>(/* private fields */);
Implementations§
source§impl<A> WeakAddress<A>
impl<A> WeakAddress<A>
sourcepub fn try_upgrade(&self) -> Option<Address<A>>
pub fn try_upgrade(&self) -> Option<Address<A>>
Try to upgrade this WeakAddress
to a strong one.
This will yield None
if there are no more other strong addresses around.