Enum crystalorb::client::ReconciliationStatus[][src]

pub enum ReconciliationStatus {
    AwaitingSnapshot,
    Fastforwarding(FastforwardingHealth),
    Blending(f64),
}
Expand description

The client needs to perform different behaviours at different times. For example, the client cannot reconcile with the server before receing a snapshot from the server. The client cannot blend the snapshot into the current world state until the snapshot state has been fastforwarded to the correct timestamp (since server snapshots are always behind the client’s state).

Variants

AwaitingSnapshot

This is the status when the previous snapshot has been fully blended in, and the client is now waiting for the next snapshot to be applied.

Fastforwarding(FastforwardingHealth)

This is the status when a snapshot is taken from the snapshot queue and the client is now in the process of bringing that snapshot state on par with the client’s existing timestamp.

Blending(f64)

This is the status when the snapshot timestamp now matches the client’s timestamp, and the client is now in the process of blending the snapshot into the client’s display state. The f64 value describes the current interpolation parameter used for blending the old and new display states together, ranging from 0.0 (meaning use the old state) to 1.0 (meaning use the new state).

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.