Module actor

Module actor 

Source
Expand description

Module containing all the different parts of the actor and their spawn functions. The most important of these are: Child, ChildPool, Address and Inbox with spawn, spawn_one and spawn_many. Ready documentation on their respective parts for more information.

Structs§

Address
An address is a reference to the actor, used to send messages.
Child
A child is the non clone-able reference to an actor with a single process.
ChildPool
A child-pool is the non clone-able reference to an actor with a multiple processes.
Inbox
An Inbox is a non clone-able receiver part of a channel.
ShutdownFut
ShutdownStream
Stream returned when shutting down a ChildPool.

Functions§

spawn
Spawn a new actor with a single process, this returns a Child and an Address.
spawn_many
Spawn a new actor with a multiple process, this returns a ChildPool and an Address.
spawn_one
Spawn a new actor with a single process, this returns a Child and an Address.