azure_iot_operations_mqtt::interface

Trait MqttEventLoop

Source
pub trait MqttEventLoop {
    // Required methods
    fn poll<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Event, ConnectionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn set_clean_start(&mut self, clean_start: bool);
    fn set_authentication_method(
        &mut self,
        authentication_method: Option<String>,
    );
    fn set_authentication_data(&mut self, authentication_data: Option<Bytes>);
}
Expand description

MQTT Event Loop manipulation

Required Methods§

Source

fn poll<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Event, ConnectionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Poll the event loop for the next Event

Source

fn set_clean_start(&mut self, clean_start: bool)

Modify the clean start flag for subsequent MQTT connection attempts

Source

fn set_authentication_method(&mut self, authentication_method: Option<String>)

Set the authentication method

Source

fn set_authentication_data(&mut self, authentication_data: Option<Bytes>)

Set the authentication data

Implementations on Foreign Types§

Source§

impl MqttEventLoop for EventLoop

Source§

fn poll<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Event, ConnectionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn set_clean_start(&mut self, clean_start: bool)

Source§

fn set_authentication_method(&mut self, authentication_method: Option<String>)

Source§

fn set_authentication_data(&mut self, authentication_data: Option<Bytes>)

Implementors§