pub type Packet = Packet<Topics, TopicsQos, Bytes>;Expand description
A type-erased MQTT packet
Aliased Type§
pub enum Packet {
Show 14 variants
Connack(Connack),
Connect(Connect<Vec<u8, 256>>),
Disconnect(Disconnect),
Pingreq(Pingreq),
Pingresp(Pingresp),
Puback(Puback),
Pubcomp(Pubcomp),
Publish(Publish<Vec<u8, 256>>),
Pubrec(Pubrec),
Pubrel(Pubrel),
Suback(Suback),
Subscribe(Subscribe<Vec<(Vec<u8, 256>, u8), 4>, Vec<u8, 256>>),
Unsuback(Unsuback),
Unsubscribe(Unsubscribe<Vec<Vec<u8, 256>, 4>, Vec<u8, 256>>),
}Variants§
Connack(Connack)
An Connack packet
Connect(Connect<Vec<u8, 256>>)
An Connect packet
Disconnect(Disconnect)
An Disconnect packet
Pingreq(Pingreq)
An Pingreq packet
Pingresp(Pingresp)
An Pingresp packet
Puback(Puback)
An Puback packet
Pubcomp(Pubcomp)
An Pubcomp packet
Publish(Publish<Vec<u8, 256>>)
An Publish packet
Pubrec(Pubrec)
An Pubrec packet
Pubrel(Pubrel)
An Pubrel packet
Suback(Suback)
An Suback packet
Subscribe(Subscribe<Vec<(Vec<u8, 256>, u8), 4>, Vec<u8, 256>>)
An Subscribe packet
Unsuback(Unsuback)
An Unsuback packet
Unsubscribe(Unsubscribe<Vec<Vec<u8, 256>, 4>, Vec<u8, 256>>)
An Unsubscribe packet