Type Definition xtra::address::WeakAddress
source · [−]Expand description
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.
Trait Implementations
sourceimpl<A, M: Message> WeakMessageChannel<M> for WeakAddress<A> where
A: Handler<M>,
impl<A, M: Message> WeakMessageChannel<M> for WeakAddress<A> where
A: Handler<M>,
sourcefn upcast(self) -> Box<dyn MessageChannel<M>>
fn upcast(self) -> Box<dyn MessageChannel<M>>
Upcasts this weak message channel into a boxed generic
MessageChannel
trait object
sourcefn upcast_ref(&self) -> &dyn MessageChannel<M>
fn upcast_ref(&self) -> &dyn MessageChannel<M>
Upcasts this weak message channel into a reference to the generic
MessageChannel
trait object
sourcefn clone_channel(&self) -> Box<dyn WeakMessageChannel<M>>
fn clone_channel(&self) -> Box<dyn WeakMessageChannel<M>>
Clones this channel as a boxed trait object.
sourcefn sink(&self) -> Box<dyn WeakMessageSink<M>>
fn sink(&self) -> Box<dyn WeakMessageSink<M>>
Use this message channel as a futures Sink
and asynchronously send messages through it. Read more