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§

Returns the actor’s ActorRef

Returns the actor’s parent ActorRef

Returns an iterator for the actor’s children references

Implementors§