Expand description
Backend (server → client) message decoding.
Row payloads are returned as zero-copy [Bytes] slices of the receive
buffer, so a DataRow never copies its column data.
Structs§
- Field
Description - Description of one result column.
Enums§
- Backend
Message - A decoded backend message.
Constants§
- DEFAULT_
MAX_ MESSAGE_ LEN - Default largest accepted length for a single backend message body, in bytes (128 MiB).
Functions§
- decode
- Attempts to decode one backend message from
bufwith the default size limit (DEFAULT_MAX_MESSAGE_LEN). - decode_
with_ limit - Like
decode, but rejects any message whose declared body length exceedsmaxbytes before anything is buffered.