Enum crystalorb::client::FastforwardingHealth[][src]

pub enum FastforwardingHealth {
    Healthy,
    Obsolete,
    Overshot,
}
Expand description

Fastforwarding the server’s snapshot to the current timestamp can take multiple update cycles. During this time, different external situations can cause the fastfowarding process to abort in an unexpected way. This enum describes these possible situations.

Variants

Healthy

Exactly as the name implies. Fastforwarding continues as normal.

Obsolete

If a new server snapshot arrives before the current server snapshot has finished fastfowarding, and for some reason this server snapshot has a timestamp newer than the current fastforwarded snapshot timestamp, then we mark the current fastforwarded snapshot as obsolete as it is even further behind than the latest snapshot. This newer snapshot then replaces the current new-world state, and the fast-forwarding continues.

Essentially, this is like taking a shortcut, and is important whenever the client performs a timeskip. The new world timestamp could suddenly become very far behind, and we don’t want the client to become stuck trying to fastforward this very “old” server snapshot.

Overshot

When the client perform timeskips, weird things can happen to existing timestamps and the current new world timestamp that we are trying to fastforward may end up ahead of the current timestamp.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more