Skip to main content

write_reply

Function write_reply 

Source
pub async fn write_reply<W: AsyncWrite + Unpin, T: Serialize>(
    writer: &mut W,
    value: &T,
) -> Result<(), CodecError>
Expand description

RPC reply: total encoded length, followed by length-prefixed chunks. The complete message is checked before any bytes are written.