pub fn validate_topic_name(topic: &str) -> Result<()>Expand description
Validates a topic name and returns an error if invalid
ยงErrors
Returns MqttError::InvalidTopicName if the topic name:
- Is empty
- Exceeds maximum string length
- Contains null characters
- Contains wildcard characters (+, #)