Expand description
Simple Open Framing Header (SOFH) support.
SOFH provides encoding- and content-agnostic message framing over wire. SOFH mandates that each message is preceded by a six (6) byte header, which contains two pieces of information:
- The total length of the current message, in bytes.
- The “encoding type” of such message, i.e. a numeric code used to pass
information to the receiver(s) as to the kind of payload.
EncodingTypecomes in handy when dealing with standard encoding types.
The preferred way to send and receive SOFH-enclosed messages over wire is with
TokioCodec (available with the utils-tokio-codec feature).
Structs§
- Frame
- An immutable view into a SOFH-enclosed message, complete with its encoding type tag and message payload.
- Tokio
Codec utils-tokio-codec - A
tokio_utilDecoderandEncoder.
Enums§
- Encoding
Type - Sum type for all SOFH encoding types.
- Error
- The type returned in the event of an error when decoding SOFH-enclosed messages.