[−][src]Crate mqtt4bytes
Structs
| ConnAck | |
| Connect | |
| LastWill | |
| MqttCodec | |
| PubAck | |
| PubComp | |
| PubRec | |
| PubRel | |
| Publish | |
| SubAck | |
| Subscribe | |
| SubscribeTopic | |
| UnsubAck | |
| Unsubscribe | 
Enums
| ConnectReturnCode | |
| Error | |
| Packet | |
| PacketType | |
| Protocol | |
| QoS | |
| SubscribeReturnCodes | 
Functions
| has_wildcards | |
| matches | checks if topic matches a filter. topic and filter validation isn't done here. NOTE: 'topic' is a misnomer in the arg. this can also be used to match 2 wild subscriptions NOTE: make sure a topic is validated during a publish and filter is validated during a subscribe | 
| mqtt_read | |
| mqtt_write | |
| packet_type | 7 3 0 +--------------------------+--------------------------+ byte 1 | MQTT Control Packet Type | Flags for each type | +--------------------------+--------------------------+ | Remaining Bytes Len (1 - 4 bytes) | +-----------------------------------------------------+ | 
| qos | |
| valid_filter | checks if the filter is valid https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718106 | 
| valid_topic | checks if a topic is valid |