Trait riker::actor::CellPublic
source · pub trait CellPublic {
type Msg: Message;
fn myself(&self) -> ActorRef<Self::Msg>;
fn parent(&self) -> ActorRef<Self::Msg>;
fn children<'a>(
&'a self
) -> Box<dyn Iterator<Item = ActorRef<Self::Msg>> + 'a>;
fn user_root(&self) -> ActorRef<Self::Msg>;
fn is_root(&self) -> bool;
}
Expand description
ActorCell
public API.
This trait is used by ActorRef
.
Required Associated Types§
Required Methods§
sourcefn children<'a>(&'a self) -> Box<dyn Iterator<Item = ActorRef<Self::Msg>> + 'a>
fn children<'a>(&'a self) -> Box<dyn Iterator<Item = ActorRef<Self::Msg>> + 'a>
Returns an iterator for the actor’s children references