pub trait ClientCreator: Send + Sync {
// Required method
fn create(
&self,
address: String,
username: String,
password: String,
keep_alive_interval: Duration,
) -> Result<Arc<dyn MqttClient>, Error>;
}
Expand description
A trait for creating MQTT client.