Struct actix::actors::mocker::Mocker [−][src]
Expand description
This actor is able to wrap another actor and accept all the messages the wrapped actor can, passing it to a closure which can mock the response of the actor.
Implementations
Trait Implementations
Called after an actor is in Actor::Stopping
state. Read more
Start a new asynchronous actor, returning its address. Read more
Construct and start a new asynchronous actor, returning its address. Read more
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
[src]
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
[src]Start new actor in arbiter’s thread.
Construct and start arbiter service
Method is called during service initialization.
Get actor’s address from arbiter registry
Called when the supervisor restarts a failed actor.
Construct and start system service
Method is called during service initialization.
Get actor’s address from system registry
Auto Trait Implementations
impl<T> !RefUnwindSafe for Mocker<T>
impl<T> !UnwindSafe for Mocker<T>