Skip to main content

encode_to

Function encode_to 

Source
pub async fn encode_to<E: Encode + ?Sized, W: Write + Unpin + Send>(
    value: &E,
    writer: W,
) -> Result<usize>
Expand description

Writes encoded byte array to writer and returns the number of bytes written