Struct paho_mqtt3as_sys::MQTTAsync_disconnectOptions [] [src]

#[repr(C)]
pub struct MQTTAsync_disconnectOptions { pub struct_id: [c_char; 4], pub struct_version: c_int, pub timeout: c_int, pub onSuccess: MQTTAsync_onSuccess, pub onFailure: MQTTAsync_onFailure, pub context: *mut c_void, }

Fields

The eyecatcher for this structure. Must be MQTD.

The version number of this structure. Must be 0 or 1. 0 signifies no SSL options

The client delays disconnection for up to this time (in milliseconds) in order to allow in-flight message transfers to complete.

A pointer to a callback function to be called if the disconnect successfully completes. Can be set to NULL, in which case no indication of successful completion will be received.

A pointer to a callback function to be called if the disconnect fails. Can be set to NULL, in which case no indication of unsuccessful completion will be received.

A pointer to any application-specific context. The the context pointer is passed to success or failure callback functions to provide access to the context information in the callback.

Trait Implementations

impl Debug for MQTTAsync_disconnectOptions
[src]

Formats the value using the given formatter.

impl Copy for MQTTAsync_disconnectOptions
[src]

impl Clone for MQTTAsync_disconnectOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for MQTTAsync_disconnectOptions
[src]

Returns the "default value" for a type. Read more