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
The session made progress in synchronizing. After total
roundtrips, the session are synchronized.
Show fields
Fields of Synchronizing
The session is now synchronized with the remote client.
Show fields
Fields of Synchronized
player_handle: PlayerHandle
The remote client has disconnected.
Show fields
Fields of Disconnected
player_handle: PlayerHandle
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: PlayerHandle
disconnect_timeout: u128
Sent only after a NetworkInterrupted
event, if communication with that player has resumed.
Show fields
Fields of NetworkResumed
player_handle: PlayerHandle
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
Auto Trait Implementations
impl RefUnwindSafe for GGRSEvent
impl UnwindSafe for GGRSEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V