Function sage_mqtt::codec::write_control_packet_type[][src]

pub async fn write_control_packet_type<W: AsyncWrite + Unpin>(
    cpt: PacketType,
    writer: &mut W
) -> SageResult<usize>
Expand description

Write the given PacketType in one byte according to MQTT5 specifications. In case of success, returns 1.