Function mqttbytes::v4::read[][src]

pub fn read(stream: &mut BytesMut, max_size: usize) -> Result<Packet, Error>
Expand description

Reads a stream of bytes and extracts next MQTT packet out of it