pub async fn write_messages<Writer: AsyncWriteExt + Unpin, Message: Serialize>(
partial_write: &mut BytesMut,
writer: &mut Writer,
messages: Vec<Message>,
) -> Result<(), ProtocolError>Expand description
Write multiple F messages with frame’s headers to the writer. The variable
*partial_write is set for graceful shutdown attempts with partial writes.
Upon a successful write, it is left empty.