Skip to main content

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).

Re-exportsยง

pub use self::filter::TopicFilter;
pub use self::filter_buf::TopicFilterBuf;alloc
pub use self::name::Topic;
pub use self::name_buf::TopicBuf;alloc

Modulesยง

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

Enumsยง

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