Trait ggrs::Config

source ·
pub trait Config: 'static {
    type Input: Copy + Clone + PartialEq + NoUninit + CheckedBitPattern + Zeroable;
    type State: Clone;
    type Address: Clone + PartialEq + Eq + Hash + Debug;
}
Expand description

Compile time parameterization for sessions.

Required Associated Types§

source

type Input: Copy + Clone + PartialEq + NoUninit + CheckedBitPattern + Zeroable

The input type for a session. This is the only game-related data transmitted over the network.

Reminder: Types implementing Pod may not have the same byte representation on platforms with different endianness. GGRS assumes that all players are running with the same endianness when encoding and decoding inputs.

source

type State: Clone

The save state type for the session.

source

type Address: Clone + PartialEq + Eq + Hash + Debug

The address type which identifies the remote clients

Object Safety§

This trait is not object safe.

Implementors§