[][src]Function libp2p::core::upgrade::write_varint

pub async fn write_varint(
    socket: &'_ mut impl Unpin + AsyncWrite,
    len: usize
) -> Result<(), Error>

Writes a variable-length integer to the socket.

Note: Does NOT flush the socket.