Trait de_multiplayer::messages::ToMessage

source ·
trait ToMessage
where Self: Event,
{ type Message: Encode; const PORT_TYPE: PortType; const PEERS: Peers; // Required methods fn reliability(&self) -> Reliability; fn message(&self) -> &Self::Message; }

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn reliability(&self) -> Reliability

source

fn message(&self) -> &Self::Message

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ToMessage for ToGameServerEvent

§

type Message = ToGame

source§

const PORT_TYPE: PortType = PortType::Game

source§

const PEERS: Peers = Peers::Server

source§

impl ToMessage for ToMainServerEvent

§

type Message = ToServer

source§

const PORT_TYPE: PortType = PortType::Main

source§

const PEERS: Peers = Peers::Server

source§

impl ToMessage for ToPlayersEvent

§

type Message = ToPlayers

source§

const PORT_TYPE: PortType = PortType::Game

source§

const PEERS: Peers = Peers::Players