Skip to main content

Module traits

Module traits 

Source
Expand description

Core traits implemented by every encodable value.

Encode writes a value into a WriteBuf; Decode reads one out of a ReadBuf. The traits are deliberately minimal so callers can compose them with any framing strategy in the framing module.

Traitsยง

Decode
A value that can be read from a ReadBuf.
Encode
A value that can be written to a WriteBuf.