Skip to main content

Crate aetheris_protocol

Crate aetheris_protocol 

Source
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::Fragment envelope using rmp-serde. This includes the enum tag, FragmentedEvent fields, and Vec<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.