Module protocol

Module protocol 

Source

Structs§

Field

Constants§

DEFAULT_RECURSION_DEPTH
The maximum recursive depth the skip() function will traverse

Traits§

Protocol
An instance of Protocol glues a Framing implementation to a serializer (ProtocolWriter) and deserializer (ProtocolReader). It constructs, as needed, a serializer to construct a frame with a given protocol, or a deserializer from a frame into a stream of deserialized objects.
ProtocolReader
Trait for decoding a frame in a given protocol
ProtocolWriter
Trait for emitting a frame formatted in a given protocol

Functions§

should_break

Type Aliases§

ProtocolDecoded
Helper type alias to get the buffer type for a frame to be decoded.
ProtocolEncoded
Helper type alias to get the pre-finalization encoded type of a protocol frame.
ProtocolEncodedFinal
Helper type alias to get the final encoded type of a protocol frame