Expand description
Receive
and Publish
implementations that serialize and deserialize payloads on underlying binary sessions.
§Implementations
FramePublisher
will “frame” and publish payloads on an underlying binarySession
that canPublish
.FrameReceiver
will receive and deserialize from a binarySession
that canReceive
.FrameDuplex
acts as a comboFramePublisher
andFrameReceiver
for bi-directional sessions.
The DeserializeFrame
and SerializeFrame
traits provided in this module enable a convenient way to convert
data from an underlying binary streaming protocol back and forth with parsed events.
Structs§
- FrameDuplex
- FramePublisher
- FrameReceiver
- Returns the parsed and total deserialized size frame for [
FramingStrategy
]deserialize_frame
. - A zero-copy binary
DeserializeFrame
implementation that utilizes a little-endian u64 length at the beginning of the data. - A zero-copy binary
SerializeFrame
implementation that adds a little-endian u64 length to the beginning of the data.
Traits§
- Deserialize frames using buffer slices. This is used by a [
FramingSession
] to read/write frames using a raw binarySession
.