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 backend message, reusing buf to avoid per-message allocation.