spin_factor_outbound_mqtt

Trait MqttClient

Source
pub trait MqttClient: Send + Sync {
    // Required method
    fn publish_bytes<'life0, 'async_trait>(
        &'life0 self,
        topic: String,
        qos: Qos,
        payload: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn publish_bytes<'life0, 'async_trait>( &'life0 self, topic: String, qos: Qos, payload: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§