Expand description
Serialization.
Structs
- A byte slice wrapper providing buffer functionality.
- A
BufferView
into aBuf
. - A
BufferViewMut
into aBuf
. - The error returned when a buffer is too short to hold a serialized packet, and the
BufferProvider
is incapable of allocating a new one. - An
InnerPacketBuilder
created from anyB: ByteSlice
. - A
Serializer
constructed from anInnerPacketBuilder
. - A
PacketBuilder
with a specific maximum packet length constraint. - One object encapsulated in another one.
- The constraints required by a
PacketBuilder
. - A
Serializer
that truncates its body if it would exceed a size limit.
Enums
- Either of two buffers.
- Either of two serializers.
- An error in serializing a packet.
- The direction a buffer’s body should be truncated from to force it to fit within a size limit.
Traits
- An object capable of allocating new buffers.
- An object capable of providing buffers which satisfy certain constraints.
- A builder capable of serializing packets - which do not encapsulate other packets - into an existing buffer.
- One or more nested
PacketBuilder
s. - A builder capable of serializing a packet’s headers and footers.
Functions
- Allocates a new
Buf<Vec<u8>>
. - Attempts to reuse a buffer for the purposes of implementing
BufferProvider::reuse_or_realloc
.