pub enum GGRSEvent<T>where
T: Config,{
Synchronizing {
addr: T::Address,
total: u32,
count: u32,
},
Synchronized {
addr: T::Address,
},
Disconnected {
addr: T::Address,
},
NetworkInterrupted {
addr: T::Address,
disconnect_timeout: u128,
},
NetworkResumed {
addr: T::Address,
},
WaitRecommendation {
skip_frames: u32,
},
DesyncDetected {
frame: Frame,
local_checksum: u128,
remote_checksum: u128,
addr: T::Address,
},
}
Expand description
Notifications that you can receive from the session. Handling them is up to the user.
Variants§
Synchronizing
Fields
The session made progress in synchronizing. After total
roundtrips, the session are synchronized.
Synchronized
The session is now synchronized with the remote client.
Disconnected
The remote client has disconnected.
NetworkInterrupted
Fields
The session has not received packets from the remote client for some time and will disconnect the remote in disconnect_timeout
ms.
NetworkResumed
Sent only after a GGRSEvent::NetworkInterrupted
event, if communication with that player has resumed.
WaitRecommendation
Fields
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.
DesyncDetected
Fields
Sent whenever GGRS locally detected a discrepancy between local and remote checksums