Struct kay::World[][src]

pub struct World(_);

Gives limited access to an ActorSystem (typically from inside, in a message handler) to identify other actors and send messages to them.

Methods

impl World
[src]

Send a message to a (sub-)actor with the given RawID.

world.send(child_id, Update { dt: 1.0 });

Get the RawID of the first machine-local instance of an actor.

Get the RawID of the first instance of an actor on machine 0

Get the RawID for a broadcast to all machine-local instances of an actor.

Get the RawID for a global broadcast to all instances of an actor on all machines.

Synchronously allocate a instance id for a instance that will later manually be added to a Swarm

Get the id of the machine that we're currently in

Signal intent to shutdown the actor system

Trait Implementations

impl Sync for World
[src]

impl Send for World
[src]