[][src]Struct seal_rs::actors::actor_system::ActorSystem

pub struct ActorSystem {
    pub dispatcher: TSafe<DefaultDispatcher>,
    // some fields omitted
}

Fields

dispatcher: TSafe<DefaultDispatcher>

Default dispatcher. Used if other dispatcher does not explicitly specified.

Methods

impl ActorSystem[src]

pub fn new() -> TSafe<ActorSystem>[src]

Create new actor system protected by TSafe guard.

pub 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

pub fn stop(&mut self, aref: &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

pub fn run(&mut self)[src]

Runs the actor system

pub fn dead_letters(&mut self) -> ActorRef[src]

Return deadLetter actor reference

Trait Implementations

impl Clone for ActorSystem[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for ActorSystem

impl Sync for ActorSystem

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]