pub async fn write_two_byte_integer<W: AsyncWrite + Unpin>( data: u16, writer: &mut W, ) -> Result<usize>
Write the given u16 according to MQTT5 Two Byte Integer specifications. In case of success, returns 2.
u16
2