Skip to main content

MessageSlot

Type Alias MessageSlot 

Source
pub type MessageSlot = MaybeUninit<*mut ISteamNetworkingMessage>;
Expand description

A single receive slot.

Each slot is an uninitialized cell that GameNetworkingSockets fills with one *mut ISteamNetworkingMessage. Build a buffer of slots, for example [const { MessageSlot::uninit() }; 128], and pass it to GnsSocket::receive_messages_into.

Aliased Typeยง

#[repr(transparent)]
pub union MessageSlot { /* private fields */ }