[−][src]Trait actors_rs::ActorReference
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 parent(&self) -> BasicActorRef
Parent reference
Returns the BasicActorRef
of this actor's parent actor
fn user_root(&self) -> BasicActorRef
User root reference
I.e. /root/user
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
Implementors
impl ActorReference for BasicActorRef
[src]
fn name(&self) -> &str
[src]
Actor name.
Unique among siblings.
fn uri(&self) -> &ActorUri
[src]
fn path(&self) -> &ActorPath
[src]
Actor path.
e.g. /user/actor_a/actor_b
fn is_root(&self) -> bool
[src]
fn parent(&self) -> BasicActorRef
[src]
Parent reference.
fn user_root(&self) -> BasicActorRef
[src]
fn has_children(&self) -> bool
[src]
fn is_child(&self, actor: &BasicActorRef) -> bool
[src]
fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>
[src]
Iterator over children references.
fn sys_tell(&self, msg: SystemMsg)
[src]
impl<'_> ActorReference for &'_ BasicActorRef
[src]
fn name(&self) -> &str
[src]
Actor name.
Unique among siblings.
fn uri(&self) -> &ActorUri
[src]
fn path(&self) -> &ActorPath
[src]
Actor path.
e.g. /user/actor_a/actor_b
fn is_root(&self) -> bool
[src]
fn parent(&self) -> BasicActorRef
[src]
Parent reference.
fn user_root(&self) -> BasicActorRef
[src]
fn has_children(&self) -> bool
[src]
fn is_child(&self, actor: &BasicActorRef) -> bool
[src]
fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>
[src]
Iterator over children references.
fn sys_tell(&self, msg: SystemMsg)
[src]
impl<'_, Msg: Message> ActorReference for &'_ ActorRef<Msg>
[src]
fn name(&self) -> &str
[src]
Actor name.
Unique among siblings.
fn uri(&self) -> &ActorUri
[src]
fn path(&self) -> &ActorPath
[src]
Actor path.
e.g. /user/actor_a/actor_b
fn is_root(&self) -> bool
[src]
fn parent(&self) -> BasicActorRef
[src]
Parent reference.
fn user_root(&self) -> BasicActorRef
[src]
fn has_children(&self) -> bool
[src]
fn is_child(&self, actor: &BasicActorRef) -> bool
[src]
fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>
[src]
Iterator over children references.
fn sys_tell(&self, msg: SystemMsg)
[src]
impl<Msg: Message> ActorReference for ActorRef<Msg>
[src]
fn name(&self) -> &str
[src]
Actor name.
Unique among siblings.
fn uri(&self) -> &ActorUri
[src]
fn path(&self) -> &ActorPath
[src]
Actor path.
e.g. /user/actor_a/actor_b
fn is_root(&self) -> bool
[src]
fn parent(&self) -> BasicActorRef
[src]
Parent reference.
fn user_root(&self) -> BasicActorRef
[src]
fn has_children(&self) -> bool
[src]
fn is_child(&self, actor: &BasicActorRef) -> bool
[src]
fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>
[src]
Iterator over children references.
fn sys_tell(&self, msg: SystemMsg)
[src]
impl<T> ActorReference for BoxedTell<T> where
T: Message,
[src]
T: Message,
fn name(&self) -> &str
[src]
Actor name.
Unique among siblings.
fn uri(&self) -> &ActorUri
[src]
fn path(&self) -> &ActorPath
[src]
Actor path.
e.g. /user/actor_a/actor_b
fn is_root(&self) -> bool
[src]
fn parent(&self) -> BasicActorRef
[src]
Parent reference.
fn user_root(&self) -> BasicActorRef
[src]
fn has_children(&self) -> bool
[src]
fn is_child(&self, actor: &BasicActorRef) -> bool
[src]
fn children<'a>(&'a self) -> Box<dyn Iterator<Item = BasicActorRef> + 'a>
[src]
Iterator over children references.