Trait bones_framework::external::ggrs::Config

pub trait Config: 'static + Send + Sync {
    type Input: Copy + Clone + PartialEq + Pod + Zeroable + Send + Sync;
    type State: Clone + Send + Sync;
    type Address: Clone + PartialEq + Eq + Hash + Send + Sync + Debug;
}
Expand description

Compile time parameterization for sessions.

Required Associated Types§

type Input: Copy + Clone + PartialEq + Pod + Zeroable + Send + Sync

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.

type State: Clone + Send + Sync

The save state type for the session.

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

The address type which identifies the remote clients

Object Safety§

This trait is not object safe.

Implementors§