[−][src]Module rumq_core::mqtt4
Modules
codec | This module describes how to serialize and deserialize mqtt 4 packets |
Structs
Connack | Connack packet |
Connect | Mqtt connect packet representation |
LastWill | Last will of the connection |
PacketIdentifier | Packet identifier for packets types that require broker to acknowledge |
Publish | Publish packet |
Suback | Subscription acknowledgement |
Subscribe | Subscriber packet |
SubscribeTopic | Subscription topic |
Unsubscribe | Unsubscribe packet |
Enums
ConnectReturnCode | Connection return code sent by the server |
Packet | Encapsulates all the possible mqtt packets |
Protocol | Mqtt protocol version |
QoS | Quality of service |
SubscribeReturnCodes | Subscription return code sent by the broker |
Traits
AsyncMqttRead | Mqtt awareness on top of tokio's |
AsyncMqttWrite | Mqtt awareness on top of tokio's |
MqttRead | Mqtt awareness on top of |
MqttWrite | Mqtt awareness on top of |
Functions
has_wildcards | Checks if a topic or topic filter 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 |
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 |