Crate kay [−] [src]
Kay is a high-performance actor system, suitable for simulating millions of entities.
Kay, actors concurrently send and receive asynchronous messages, but are
otherwise completely isloated from each other. Actors can only mutate their own state.
- Can't deal with messages to dead actors (undefined, often very confusing behaviour)
Tools for dealing with large amounts of identical actors
Helper that is used to define actor behaviour (message handlers).
The main thing inside of which all the magic happens.
TODO: make this much more simple and just like a Box once we can move out of messages! 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.
An ID that uniquely identifies an
Combination of a message and its destination recipient id
Gives limited access to an
Return type of message handling functions, signifying if
Trait that a datastructure must implement in order to be sent and received as a message.