1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// Why a connection was terminated.
/// Sequential 16-bit index assigned to each outgoing packet for acknowledgement tracking.
pub type PacketIndex = u16;
/// Server-side tick counter, wrapping at `u16::MAX`.
pub type Tick = u16;
/// Per-channel sequence number for reliable message ordering and deduplication.
pub type MessageIndex = u16;
/// Compact 8-bit message index used by tick-buffered channels.
pub type ShortMessageIndex = u8;
/// Whether a given endpoint is a server or a client.