[−][src]Trait riker::actor::ActorRefFactory
Produces ActorRef
s. actor_of
blocks on the current thread until
the actor has successfully started or failed to start.
It is advised to return from the actor's factory method quickly and
handle any initialization in the actor's pre_start
method, which is
invoked after the ActorRef
is returned.
Associated Types
Required Methods
fn actor_of(
&self,
props: BoxActorProd<Self::Msg>,
name: &str
) -> Result<ActorRef<Self::Msg>, CreateError>
&self,
props: BoxActorProd<Self::Msg>,
name: &str
) -> Result<ActorRef<Self::Msg>, CreateError>
fn stop(&self, actor: &ActorRef<Self::Msg>)
Implementors
impl<Msg> ActorRefFactory for Context<Msg> where
Msg: Message,
[src]
impl<Msg> ActorRefFactory for Context<Msg> where
Msg: Message,
type Msg = Msg
fn actor_of(
&self,
props: BoxActorProd<Self::Msg>,
name: &str
) -> Result<ActorRef<Msg>, CreateError>
[src]
fn actor_of(
&self,
props: BoxActorProd<Self::Msg>,
name: &str
) -> Result<ActorRef<Msg>, CreateError>
fn stop(&self, actor: &ActorRef<Self::Msg>)
[src]
fn stop(&self, actor: &ActorRef<Self::Msg>)
impl<Msg> ActorRefFactory for ActorSystem<Msg> where
Msg: Message,
[src]
impl<Msg> ActorRefFactory for ActorSystem<Msg> where
Msg: Message,