[][src]Struct sealrs::testkit::actors::test_local_actor_system::TestLocalActorSystem

pub struct TestLocalActorSystem { /* fields omitted */ }

Methods

impl TestLocalActorSystem[src]

pub fn new() -> TestLocalActorSystem[src]

Identical to original in all expect than it will automatically starts system. No need call run manually

pub fn create_probe(&self, name: Option<&str>) -> TestProbe[src]

Create new TestProbe with specified name

pub fn replace_actor_of(&mut self, aref: ActorRef)[src]

At next call of actor_of specified ActorRef will be returned instead of really created actor from a props.

Trait Implementations

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

impl AbstractActorSystem for TestLocalActorSystem[src]

fn get_scheduler(&self) -> TSafe<Scheduler>[src]

Identical to original

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]

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_executor(&self, name: &str) -> TSafe<dyn Executor + Send>[src]

Returns dispatcher by name as executor

impl Clone for TestLocalActorSystem[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

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]