Module blaze_pk::packet

source ·
Expand description

Packet implementation for creating Packets along with types used by the router for creating and decoding contents / responses

Also contains the decoding and encoding logic for tokio codec PacketCodec

Structs

  • Structure for Blaze packets contains the contents of the packet and the header for identification.
  • Wrapping structure for raw Bytes structures that can be used as packet response
  • Tokio codec for encoding and decoding packets
  • Wrapper over a packet structure to provde debug logging with names resolved for the component
  • Structure of packet header which comes before the packet content and describes it.
  • Structure wrapping a from request type to include a packet header to allow the response type to be created
  • Type for route responses that have already been turned into packets usually for lifetime reasons

Enums

Traits

  • Trait implementing by structures which can be created from a request packet and is used for the arguments on routing functions
  • Trait for a type that can be converted into a packet response using the header from the request packet
  • Trait for implementing packet target details
  • Trait implemented by structures that can be used as packet components