Expand description
Packet types and structures. Packet types and structures for the command-based protocol.
This module provides the core packet types used throughout the protocol:
Packet: User-facing packet with payload and guaranteesPacketInfo: Non-owning packet metadata for processingIncomingPackets: Collection type for returning 0, 1, or many packets- Delivery and ordering guarantee enums
Structs§
- Incoming
Packets - Collection of incoming packets (0, 1, or many) with their types. Used by command-based packet processing to return variable numbers of packets.
- Packet
- User-friendly packet containing payload, endpoint, and guarantees.
- Packet
Info - Non-owning packet metadata used during processing.
- Zero
OrMore - Iterator over 0, 1, or many items.
Enums§
- Delivery
Guarantee - Enum to specify how a packet should be delivered.
- Ordering
Guarantee - Enum to specify how a packet should be arranged.
- Packet
Type - Id to identify a certain packet type.
Traits§
- Enum
Converter - Helper trait to convert enums to u8 values for wire format.
Type Aliases§
- Sequence
Number - 16-bit sequence number type used by protocol.