Function maelstrom_util::net::write_message_to_async_socket

source ยท
pub async fn write_message_to_async_socket(
    stream: &mut (impl AsyncWrite + Unpin),
    msg: impl Serialize
) -> Result<()>
Expand description

Write a message to a Tokio output stream. Each message is framed by sending a leading 4-byte, little-endian message size.