[−][src]Struct sealrs::actors::local_actor_system::LocalActorSystem
Methods
impl LocalActorSystem
[src]
pub fn new() -> LocalActorSystem
[src]
Create new actor system protected by TSafe guard.
Trait Implementations
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 actor_select(&mut self, path: &str) -> Vec<ActorRef>
[src]
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 AbstractActorSystem for LocalActorSystem
[src]
fn get_scheduler(&self) -> TSafe<Scheduler>
[src]
Returns actor system scheduler
fn register_watch_event(&self, from: &ActorRef, event: WatchingEvents)
[src]
Register new watching event from the specified actor
fn terminate(&mut self)
[src]
Stops the actor system
fn add_dispatcher(
&mut self,
name: &str,
dispatcher: TSafe<dyn Dispatcher + Send>
)
[src]
&mut self,
name: &str,
dispatcher: TSafe<dyn Dispatcher + Send>
)
Adds new dispatcher to the system. For now supporter only default dispatcher replacing
fn get_dispatcher(&self, name: &str) -> TSafe<dyn Dispatcher + Send>
[src]
Returns dispatcher by name
fn get_dispatchers(
&self
) -> TSafe<HashMap<String, TSafe<dyn Dispatcher + Send>>>
[src]
&self
) -> TSafe<HashMap<String, TSafe<dyn Dispatcher + Send>>>
fn get_executor(&self, name: &str) -> TSafe<dyn Executor + Send>
[src]
Returns dispatcher by name as executor
fn get_nid(&mut self) -> String
[src]
impl Clone for LocalActorSystem
[src]
Auto Trait Implementations
impl !Sync for LocalActorSystem
impl Unpin for LocalActorSystem
impl Send for LocalActorSystem
impl !UnwindSafe for LocalActorSystem
impl !RefUnwindSafe for LocalActorSystem
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,