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

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

Required methods

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

Actor name.

Unique among siblings.

pub fn uri(&self) -> &ActorUri[src]

Actor URI.

Returns the URI for this actor.

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

Actor path.

e.g. /user/actor_a/actor_b

pub fn is_root(&self) -> bool[src]

True if this actor is the top level root

I.e. /root

pub fn user_root(&self) -> BasicActorRef[src]

User root reference

I.e. /root/user

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

Parent reference

Returns the BasicActorRef of this actor's parent actor

pub fn has_children(&self) -> bool[src]

True is this actor has any children actors

pub fn is_child(&self, actor: &BasicActorRef) -> bool[src]

True if the given actor is a child of this actor

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

Iterator over children references.

pub fn sys_tell(&self, msg: SystemMsg)[src]

Send a system message to this actor

Loading content...

Implementors

impl ActorReference for BasicActorRef[src]

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

Actor name.

Unique among siblings.

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

Actor path.

e.g. /user/actor_a/actor_b

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

Parent reference.

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

Iterator over children references.

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

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

Actor name.

Unique among siblings.

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

Actor path.

e.g. /user/actor_a/actor_b

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

Parent reference.

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

Iterator over children references.

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

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

Actor name.

Unique among siblings.

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

Actor path.

e.g. /user/actor_a/actor_b

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

Parent reference.

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

Iterator over children references.

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

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

Actor name.

Unique among siblings.

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

Actor path.

e.g. /user/actor_a/actor_b

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

Parent reference.

pub 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]

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

Actor name.

Unique among siblings.

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

Actor path.

e.g. `/user/actor_a/actor_b

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

Parent reference.

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

Iterator over children references.

Loading content...