Skip to main content

write_message

Function write_message 

Source
pub async fn write_message<T: Serialize>(
    writer: &mut (impl AsyncWriteExt + Unpin),
    msg: &T,
) -> Result<()>
Expand description

Write a length-prefixed JSON message to an async writer.