Expand description
Core protocol definitions and communication contracts for the Aetheris Engine.
Phase: All Phases - Stable Core
Constraint: Minimal dependency footprint.
Purpose: Defines the Trait Facade (GameTransport, WorldState, Encoder) that isolates
the engine logic from concrete implementations.
Re-exports§
pub use reassembler::Reassembler;
Modules§
- error
- Protocol error types using thiserror.
- events
- reassembler
- Logic for reassembling fragmented network messages.
- traits
- Core trait contracts for the Aetheris Engine.
- types
- Protocol-level primitive types.
Constants§
- FRAGMENT_
OVERHEAD - Estimated overhead in bytes for a
WireEvent::Fragmentenvelope usingrmp-serde. This includes the enum tag,FragmentedEventfields, andVec<u8>length prefix. - MAX_
FRAGMENT_ PAYLOAD_ SIZE - The maximum bytes of game payload that can fit into a single MTU-safe fragment.
- MAX_
SAFE_ PAYLOAD_ SIZE - Maximum safe payload size for UDP datagrams to avoid fragmentation.
- MAX_
TOTAL_ FRAGMENTS - Maximum number of fragments allowed for a single message. 1024 * 1136 bytes ~= 1.1 MiB.