[][src]Struct kompact::lookup::ActorStore

pub struct ActorStore { /* fields omitted */ }

Lookup structure for storing and retrieving ActorRefs.

UUID-based references are stored in a HashMap, and path-based named references are stored in a Trie structure.

Notes

The sequence trie supports the use case of grouping many [ActorRefs] under the same path, similar to a directory structure. Thus, actors can broadcast to all actors under a certain path without requiring explicit identifiers for them. Ex: Broadcasting a message to actors stored on the system path "tcp://127.0.0.1:8080/pongers/*"

This use case is not currently being utilized, but it may be in the future.

Methods

impl ActorStore[src]

pub fn new() -> Self[src]

Trait Implementations

impl ActorLookup for ActorStore[src]

fn insert(&mut self, actor: ActorRef, path: PathResolvable) -> Option<ActorRef>[src]

Inserts or replaces the path in the lookup structure. If an entry already exists, it is removed and returned before being replaced.

fn get_by_actor_path(&self, path: &ActorPath) -> Option<&ActorRef>[src]

fn get_mut_by_actor_path(&mut self, path: &ActorPath) -> Option<&mut ActorRef>[src]

impl Clone for ActorStore[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for ActorStore

impl Sync for ActorStore

Blanket Implementations

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T