Skip to main content

Module backend

Module backend 

Source
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§

FieldDescription
Description of one result column.

Enums§

BackendMessage
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 buf with the default size limit (DEFAULT_MAX_MESSAGE_LEN).
decode_with_limit
Like decode, but rejects any message whose declared body length exceeds max bytes before anything is buffered.