[][src]Struct riker::actor::ActorSelection

pub struct ActorSelection<Msg: Message> { /* fields omitted */ }

A selection represents part of the actor heirarchy, allowing messages to be sent to all actors in the selection.

There are several use cases where you would interact with actors via a selection instead of actor references:

ActorRef is almost always the better choice for actor interaction, since messages are directly sent to the actor's mailbox without any preprocessing or cloning.

ActorSelection provides flexibility for the cases where at runtime the ActorRefs can't be known. This comes at the cost of traversing part of the actor heirarchy and cloning messages.

A selection is anchored to an ActorRef and the path is relative to that actor's path.

If a selection.tell results in the message being sent to zero actors, the message is sent to dead letters.

Methods

impl<Msg: Message> ActorSelection<Msg>
[src]

Trait Implementations

impl<Msg: Message> Tell for ActorSelection<Msg>
[src]

Implement to provide message routing to actors, e.g. ActorRef and ActorSelection

impl<Msg: Message> SysTell for ActorSelection<Msg>
[src]

impl<Msg: Debug + Message> Debug for ActorSelection<Msg>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<Msg> Send for ActorSelection<Msg>

impl<Msg> Sync for ActorSelection<Msg>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.