[][src]Trait riker::actor::ActorReference

pub trait ActorReference {
    fn name(&self) -> &str;
fn uri(&self) -> &ActorUri;
fn path(&self) -> &ActorPath;
fn is_root(&self) -> bool;
fn user_root(&self) -> BasicActorRef;
fn parent(&self) -> BasicActorRef;
fn has_children(&self) -> bool;
fn is_child(&self, actor: &BasicActorRef) -> bool;
fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>;
fn sys_tell(&self, msg: SystemMsg); }

Required methods

fn name(&self) -> &str

Actor name.

Unique among siblings.

fn uri(&self) -> &ActorUri

Actor URI.

Returns the URI for this actor.

fn path(&self) -> &ActorPath

Actor path.

e.g. /user/actor_a/actor_b

fn is_root(&self) -> bool

True if this actor is the top level root

I.e. /root

fn user_root(&self) -> BasicActorRef

User root reference

I.e. /root/user

fn parent(&self) -> BasicActorRef

Parent reference

Returns the BasicActorRef of this actor's parent actor

fn has_children(&self) -> bool

True is this actor has any children actors

fn is_child(&self, actor: &BasicActorRef) -> bool

True if the given actor is a child of this actor

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>

Iterator over children references.

fn sys_tell(&self, msg: SystemMsg)

Send a system message to this actor

Loading content...

Implementors

impl ActorReference for BasicActorRef[src]

fn name(&self) -> &str[src]

Actor name.

Unique among siblings.

fn path(&self) -> &ActorPath[src]

Actor path.

e.g. /user/actor_a/actor_b

fn parent(&self) -> BasicActorRef[src]

Parent reference.

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>[src]

Iterator over children references.

impl<'_> ActorReference for &'_ BasicActorRef[src]

fn name(&self) -> &str[src]

Actor name.

Unique among siblings.

fn path(&self) -> &ActorPath[src]

Actor path.

e.g. /user/actor_a/actor_b

fn parent(&self) -> BasicActorRef[src]

Parent reference.

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>[src]

Iterator over children references.

impl<'_, Msg: Message> ActorReference for &'_ ActorRef<Msg>[src]

fn name(&self) -> &str[src]

Actor name.

Unique among siblings.

fn path(&self) -> &ActorPath[src]

Actor path.

e.g. /user/actor_a/actor_b

fn parent(&self) -> BasicActorRef[src]

Parent reference.

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>[src]

Iterator over children references.

impl<Msg: Message> ActorReference for ActorRef<Msg>[src]

fn name(&self) -> &str[src]

Actor name.

Unique among siblings.

fn path(&self) -> &ActorPath[src]

Actor path.

e.g. /user/actor_a/actor_b

fn parent(&self) -> BasicActorRef[src]

Parent reference.

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>[src]

Iterator over children references.

impl<T> ActorReference for BoxedTell<T> where
    T: Message
[src]

fn name(&self) -> &str[src]

Actor name.

Unique among siblings.

fn path(&self) -> &ActorPath[src]

Actor path.

e.g. `/user/actor_a/actor_b

fn parent(&self) -> BasicActorRef[src]

Parent reference.

fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>[src]

Iterator over children references.

Loading content...