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

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.