Module packet

Module packet 

Source
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 guarantees
  • PacketInfo: Non-owning packet metadata for processing
  • IncomingPackets: Collection type for returning 0, 1, or many packets
  • Delivery and ordering guarantee enums

Structs§

IncomingPackets
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.
PacketInfo
Non-owning packet metadata used during processing.
ZeroOrMore
Iterator over 0, 1, or many items.

Enums§

DeliveryGuarantee
Enum to specify how a packet should be delivered.
OrderingGuarantee
Enum to specify how a packet should be arranged.
PacketType
Id to identify a certain packet type.

Traits§

EnumConverter
Helper trait to convert enums to u8 values for wire format.

Type Aliases§

SequenceNumber
16-bit sequence number type used by protocol.