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.
Synchronized
Fields
player_handle: PlayerHandle
The session is now synchronized with the remote client.
Disconnected
Fields
player_handle: PlayerHandle
The remote client has disconnected.
NetworkInterrupted
The session has not received packets from the remote client for some time and will disconnect the remote in disconnect_timeout
ms.
NetworkResumed
Fields
player_handle: PlayerHandle
Sent only after a NetworkInterrupted
event, if communication with that player has resumed.
WaitRecommendation
Fields
skip_frames: u32
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GGRSEvent
impl UnwindSafe for GGRSEvent
Blanket Implementations
Mutably borrows from an owned value. Read more