fn is_connected(&mut self) -> Result<(), ()> {
        if self.mqtt.client.is_connected() {
            Ok(())
        } else {
            Err(())
        }
    }
/// Guard to check for an MQTT broker connection.
///
/// # Returns
/// Ok if the MQTT broker is connected, false otherwise.
Guard to check for an MQTT broker connection.
Guard to check for an MQTT broker connection .
fn is_connected(&mut self) -> Result<(), ()> {
        if self.mqtt.client.is_connected() {
            Ok(())
        } else {
            Err(())
        }
    }
fn is_connected ( & mut self ) -> Result < ( ) , ( ) > { if self . mqtt . client . is_connected ( ) { Ok ( ( ) ) } else { Err ( ( ) ) } }
Guard to check for an MQTT broker connection.
Guard to check for an MQTT broker connection .
&mut self
Ok if the MQTT broker is connected, false otherwise.
Ok if the MQTT broker is connected false otherwise .
&mut self