[−][src]Trait sealrs::actors::actor_ref_factory::ActorRefFactory
Required methods
fn actor_of(&mut self, props: Props, name: Option<&str>) -> ActorRef
fn stop(&mut self, aref: &mut ActorRef)
fn dead_letters(&mut self) -> ActorRef
fn watch(&mut self, watcher: &ActorRef, observed: &ActorRef)
Register watcher for receive 'watching events' from observed actor
fn unwatch(&mut self, watcher: &ActorRef, observed: &ActorRef)
Unregister watcher from receive 'watching events' from observed actor
Implementors
impl ActorRefFactory for ActorContext
[src]
fn actor_of(&mut self, props: Props, name: Option<&str>) -> ActorRef
[src]
fn stop(&mut self, aref: &mut ActorRef)
[src]
fn dead_letters(&mut self) -> ActorRef
[src]
fn watch(&mut self, watcher: &ActorRef, observed: &ActorRef)
[src]
fn unwatch(&mut self, watcher: &ActorRef, observed: &ActorRef)
[src]
impl ActorRefFactory for LocalActorSystem
[src]
fn actor_of(&mut self, props: Props, name: Option<&str>) -> ActorRef
[src]
Creates the new actor from specified Props object and with specified name. If name does not explicitly specified, it will be generate automatically.
Examples
fn stop(&mut self, aref: &mut ActorRef)
[src]
Stop specified actor by it's reference. Suspends actor, cancels all timers, cleans mailbox and sends to it the PoisonPill message, which will be processed right away after the current message (if this call will made from actor's message handler) or depending on the stopped actor state (if it idle it will be stopped immediately, if not, after processing his current message )
Examples
fn dead_letters(&mut self) -> ActorRef
[src]
Return deadLetter actor reference
fn watch(&mut self, watcher: &ActorRef, observed: &ActorRef)
[src]
Register watcher for receive 'watching events' from observed actor
fn unwatch(&mut self, watcher: &ActorRef, observed: &ActorRef)
[src]
Unregister watcher from receive 'watching events' from observed actor
impl ActorRefFactory for TestLocalActorSystem
[src]
fn actor_of(&mut self, props: Props, name: Option<&str>) -> ActorRef
[src]
Identical to original
fn stop(&mut self, aref: &mut ActorRef)
[src]
Identical to original
fn dead_letters(&mut self) -> ActorRef
[src]
Identical to original
fn watch(&mut self, watcher: &ActorRef, observed: &ActorRef)
[src]
Register watcher for receive 'watching events' from observed actor
fn unwatch(&mut self, watcher: &ActorRef, observed: &ActorRef)
[src]
Unregister watcher from receive 'watching events' from observed actor