Struct kay::RawID[][src]

pub struct RawID {
    pub type_id: ShortTypeId,
    pub machine: MachineID,
    pub version: u8,
    pub instance_id: u32,
}

A RawID uniquely identifies an Actor, or even a Actor within a Swarm

Fields

An ID for the type of the identified Actor, used to dispatch messages to the message handling functions registered for this type

ID of the machine (in a computing cluster or multiplayer environment) that the identified Actor lives on

Allows safe reuse of a RawID after Actor/Actor death. The version is incremented to make the new (otherwise identical) RawID distinguishable from erroneous references to the Actor/Actor previously identified

Used to identify instances within a top-level Actor. The main use-case is Swarm identifying and dispatching to its Instances using this field

Methods

impl RawID
[src]

Create a new RawID

Get a version of an actor RawID that signals that a message should be delivered to all machine-local instances.

Get a version of an actor RawID that signals that a message should be delivered globally (to all instances on all machines).

Check whether this RawID signals a local or global broadcast.

Check whether this RawID signals specifically a global broadcast.

Trait Implementations

impl Copy for RawID
[src]

impl Clone for RawID
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for RawID
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for RawID
[src]

impl Hash for RawID
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for RawID
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for RawID

impl Sync for RawID