Skip to main content

read_backend_message_into

Function read_backend_message_into 

Source
pub async fn read_backend_message_into<R: AsyncRead + Unpin>(
    rd: &mut R,
    buf: &mut BytesMut,
) -> Result<BackendMessage>
Expand description

Read a single backend message, reusing the provided buffer.

Not cancellation-safe — see MessageReader for a cancel-safe alternative used in the streaming loop.