rumqttd 0.20.0

rumqttd is a high performance MQTT broker written in Rust which is light weight and embeddable
Documentation
1
2
3
4
5
6
7
8
use super::*;
use bytes::{BufMut, BytesMut};

// In v4 there are no Reason Code and properties
pub fn write(_disconnect: &Disconnect, payload: &mut BytesMut) -> Result<usize, Error> {
    payload.put_slice(&[0xE0, 0x00]);
    Ok(2)
}