pub async fn encode_to<E: Encode + ?Sized, W: Write + Unpin + Send>( value: &E, writer: W, ) -> Result<usize>
Writes encoded byte array to writer and returns the number of bytes written