pub struct Mocker<T: Sized + Unpin + 'static> { /* fields omitted */ }
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.
Actor execution context type
Called when an actor gets polled the first time.
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
Start new actor in arbiter’s thread.
Start a new asynchronous actor given a Context
. Read more
Construct and start arbiter service
Method is called during service initialization.
Get actor’s address from arbiter registry
Returns the “default value” for a type. Read more
The type of value that this handler will return. Read more
This method is called for every message received by this actor.
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.