MQTT v5 serialization and deserialization
This is a low level crate with the ability to assemble and disassemble MQTT 5 packets and is used by both client and broker. Uses 'bytes' crate internally
License: Apache-2.0
Based on rumqttc
Usage
use BytesMut;
use ;
let mut buf: BytesMut = new;
let packet = PubAck;
let result: = packet.write;
let result: = read;
Features
Configurable MqttString type:
default
- usesString
for MqttStringboxed_string
- usesBox<str>
for MqttStringbinary_string
- usesbytes::Bytes
for MqttString (about 20% faster thanString
)
License
This project is released under The Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)