Module topic

Module topic 

Expand description

Validated topic names and topic filters.

Topic and TopicFilter are unsized, borrowing wrappers around MqttStr that enforce validity rules. With alloc, TopicBuf and TopicFilterBuf provide owned counterparts (like Path / PathBuf).

Modulesยง

filter ๐Ÿ”’
filter_buf ๐Ÿ”’ alloc
name ๐Ÿ”’
name_buf ๐Ÿ”’ alloc

Structsยง

Topic
A validated, borrowed MQTT topic name.
TopicBufalloc
An owned, validated MQTT topic name.
TopicFilter
A validated, borrowed MQTT topic filter.
TopicFilterBufalloc
An owned, validated MQTT topic filter.

Enumsยง

ParseTopicError
Error returned when parsing a topic from an unvalidated string.
TopicError
Error returned when constructing a Topic, TopicFilter, or their owned counterparts.