azure_iot_operations_mqtt::interface

Trait MqttClient

Source
pub trait MqttClient:
    MqttPubSub
    + MqttAck
    + MqttDisconnect {
    // Required method
    fn reauth<'life0, 'async_trait>(
        &'life0 self,
        auth_props: AuthProperties,
    ) -> Pin<Box<dyn Future<Output = Result<(), ReauthError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Internally-facing APIs for the underlying client. Use of this trait is not currently recommended except for mocking.

Required Methods§

Source

fn reauth<'life0, 'async_trait>( &'life0 self, auth_props: AuthProperties, ) -> Pin<Box<dyn Future<Output = Result<(), ReauthError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reauthenticate with the MQTT broker

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MqttClient for AsyncClient

Source§

fn reauth<'life0, 'async_trait>( &'life0 self, auth_props: AuthProperties, ) -> Pin<Box<dyn Future<Output = Result<(), ReauthError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§