[][src]Type Definition paho_mqtt_sys::MQTTAsync_disconnected

type MQTTAsync_disconnected = Option<unsafe extern "C" fn(context: *mut c_void, properties: *mut MQTTProperties, reasonCode: MQTTReasonCodes)>;

This is a callback function, which will be called when the client library receives a disconnect packet.

Note: Neither MQTTAsync_create() nor MQTTAsync_destroy() should be called within this callback. @param context A pointer to the context value originally passed to MQTTAsync_setCallbacks(), which contains any application-specific context. @param properties the properties in the disconnect packet. @param properties the reason code from the disconnect packet Currently, cause is always set to NULL.