Enum ggrs::GGRSEvent[][src]

pub enum GGRSEvent {
    Synchronizing {
        player_handle: PlayerHandle,
        total: u32,
        count: u32,
    },
    Synchronized {
        player_handle: PlayerHandle,
    },
    Disconnected {
        player_handle: PlayerHandle,
    },
    NetworkInterrupted {
        player_handle: PlayerHandle,
        disconnect_timeout: u128,
    },
    NetworkResumed {
        player_handle: PlayerHandle,
    },
    WaitRecommendation {
        skip_frames: u32,
    },
}
Expand description

Notifications that you can receive from the session. Handling them is up to the user.

Variants

Synchronizing

The session made progress in synchronizing. After total roundtrips, the session are synchronized.

Show fields

Fields of Synchronizing

player_handle: PlayerHandletotal: u32count: u32
Synchronized

The session is now synchronized with the remote client.

Show fields

Fields of Synchronized

player_handle: PlayerHandle
Disconnected

The remote client has disconnected.

Show fields

Fields of Disconnected

player_handle: PlayerHandle
NetworkInterrupted

The session has not received packets from the remote client for some time and will disconnect the remote in disconnect_timeout ms.

Show fields

Fields of NetworkInterrupted

player_handle: PlayerHandledisconnect_timeout: u128
NetworkResumed

Sent only after a NetworkInterrupted event, if communication with that player has resumed.

Show fields

Fields of NetworkResumed

player_handle: PlayerHandle
WaitRecommendation

Sent out if GGRS recommends skipping a few frames to let clients catch up. If you receive this, consider waiting skip_frames number of frames.

Show fields

Fields of WaitRecommendation

skip_frames: u32

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

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.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.