Skip to main content

Module topic_router

Module topic_router 

Source
Expand description

Subscription router built on the topic matcher.

TopicRouter maps MQTT subscription patterns to caller-supplied payloads T, assigns each a SubscriptionId, and resolves all payloads whose pattern matches a delivered topic. It also tracks the set of distinct broker subscriptions (with their effective QoS) so callers know when to actually subscribe or unsubscribe on the wire.

Structs§

SubscriptionId
A subscription identifier.
TopicRouter
Routes MQTT topics to subscription payloads.

Enums§

TopicRouterError
Errors that can occur during topic routing operations