pub fn is_valid_topic_name(topic: &str) -> boolExpand description
Validates an MQTT topic name according to MQTT v5.0 specification
ยงRules:
- Must be UTF-8 encoded
- Must have at least one character
- Must not contain null characters (U+0000)
- Must not exceed maximum string length when UTF-8 encoded
- Should not contain wildcard characters (+, #) in topic names (only in filters)