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: SplitByteSlice
. - A
Serializer
constructed from anInnerPacketBuilder
. - A
PacketBuilder
which has no header or footer, but which imposes a maximum body length constraint. - Provides an implementation of
BufferProvider
from aBufferAlloc
A
that attempts to reuse the input buffer and falls back to the allocator if the input buffer can’t be reused. - One object encapsulated in another one.
- Provides an implementation of
BufferProvider
from aBufferAlloc
A
that never attempts to reuse the input buffer, and always create a new buffer from the allocatorA
. - The constraints required by a
PacketBuilder
. - The target buffers into which
PacketBuilder::serialize
serializes its header and footer. - 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.
- 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
.