Struct meio::actor::Context[][src]

pub struct Context<A: Actor> { /* fields omitted */ }
Expand description

Context of a ActorRuntime that contains Address and Receiver.

Implementations

Returns an instance of the Address.

Starts and binds an Actor.

Starts and binds an Actor.

Starts and binds a Task.

Spawns interaction task that forwards the result of an interaction.

Spawns InteractionTask as a LiteTask and await the result as an Action that will call InteractionDone handler.

Interrupts an Actor.

Returns Error if the Actor is terminating. Useful for checking in handlers.

Stops the runtime of the Actor on one message will be processed after this call.

It’s recommended way to terminate Actor is the shutdown method.

Attention! Termination process will never started here and all spawned actors and tasks will be orphaned.

Starts graceful termination of the Actor.

Sends interruption signal to the sepcific group of actors and tasks.

Returns true if the shutdown process is in progress.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.