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§
Sourcefn 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,
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.