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