Nebula
Worker

AuthorityCallTarget

What the receiving worker knows about a call's target when the call arrives.

generated from the sources
public readonly struct AuthorityCallTarget

What the receiving worker knows about a call's target when the call arrives.

Constructors

AuthorityCallTarget

public AuthorityCallTarget(bool known, bool hasAuthority, uint epoch, bool canForward);

Fields

Unknown

public static readonly AuthorityCallTarget Unknown = new AuthorityCallTarget(false, false, 0, false);

The entity is not here at all.

Properties

Known

public bool Known { get; }

This worker holds a copy of the entity (authoritative or ghost).

HasAuthority

public bool HasAuthority { get; }

This worker has authority over it.

Epoch

public uint Epoch { get; }

The entity's epoch on this worker; meaningless when not Known.

CanForward

public bool CanForward { get; }

This worker has a connected peer to send the call on to, other than the one it came from.

Methods

Authoritative

public static AuthorityCallTarget Authoritative(uint epoch);

This worker has authority over the entity at epoch.

Ghost

public static AuthorityCallTarget Ghost(uint epoch, bool canForward);

This worker holds a ghost at epoch and can (or cannot) forward to its owner.

On this page