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§
Sourcefn 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 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
Sourcefn set_clean_start(&mut self, clean_start: bool)
fn set_clean_start(&mut self, clean_start: bool)
Modify the clean start flag for subsequent MQTT connection attempts
Sourcefn set_authentication_method(&mut self, authentication_method: Option<String>)
fn set_authentication_method(&mut self, authentication_method: Option<String>)
Set the authentication method
Sourcefn set_authentication_data(&mut self, authentication_data: Option<Bytes>)
fn set_authentication_data(&mut self, authentication_data: Option<Bytes>)
Set the authentication data