pub async fn write_varint( socket: &mut (impl AsyncWrite + Unpin), len: usize, ) -> Result<(), Error>
Writes a variable-length integer to the socket.
socket
Note: Does NOT flush the socket.