Crate kay[−][src]
Kay is a high-performance actor system, suitable for simulating millions of entities.
In Kay, actors concurrently send and receive asynchronous messages, but are
otherwise completely isloated from each other. Actors can only mutate their own state.
Have a look at ActorSystem, World
and Swarm to understand the main abstractions.
Current Shortcomings:
- Can't deal with messages to dead actors (undefined, often very confusing behaviour)
Structs
| ActorSystem |
The main thing inside of which all the magic happens. |
| External |
An owning reference to local state outside the actor system that can safely be embedded in actor states and passed in messages, as long as they stay on one machine. |
| MachineID |
Identifies a machine in the network |
| Networking |
Represents all networking environment and networking state
of an |
| Packet |
Combination of a message and its destination recipient id |
| RawID |
A |
| World |
Gives limited access to an |
Enums
| Fate |
Return type of message handling functions, signifying if
an |
Traits
| Actor |
Trait that Actors instance have to implement for a |
| Message |
Trait that a datastructure must implement in order to be sent and received as a message. |
| TraitIDFrom |
Helper trait that signifies that an actor's |
| TypedID |
|