[][src]Struct paho_mqtt_sys::MQTTAsync_disconnectOptions

#[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,
    pub properties: MQTTProperties,
    pub reasonCode: MQTTReasonCodes,
    pub onSuccess5: MQTTAsync_onSuccess5,
    pub onFailure5: MQTTAsync_onFailure5,
}

Options for the ::MQTTAsync_disconnect call

Fields

struct_id: [c_char; 4]

The eyecatcher for this structure. Must be MQTD.

struct_version: c_int

The version number of this structure. Must be 0 or 1. 0 signifies no V5 properties

timeout: c_int

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

onSuccess: MQTTAsync_onSuccess

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.

onFailure: MQTTAsync_onFailure

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.

context: *mut c_void

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.

properties: MQTTProperties

MQTT V5 input properties

reasonCode: MQTTReasonCodes

Reason code for MQTTV5 disconnect

onSuccess5: MQTTAsync_onSuccess5

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.

onFailure5: MQTTAsync_onFailure5

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.

Trait Implementations

impl Clone for MQTTAsync_disconnectOptions[src]

impl Copy for MQTTAsync_disconnectOptions[src]

impl Debug for MQTTAsync_disconnectOptions[src]

impl Default for MQTTAsync_disconnectOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.