[−][src]Struct paho_mqtt_sys::MQTTAsync_disconnectOptions
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]
pub fn clone(&self) -> MQTTAsync_disconnectOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MQTTAsync_disconnectOptions
[src]
impl Debug for MQTTAsync_disconnectOptions
[src]
impl Default for MQTTAsync_disconnectOptions
[src]
pub fn default() -> MQTTAsync_disconnectOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for MQTTAsync_disconnectOptions
[src]
impl !Send for MQTTAsync_disconnectOptions
[src]
impl !Sync for MQTTAsync_disconnectOptions
[src]
impl Unpin for MQTTAsync_disconnectOptions
[src]
impl UnwindSafe for MQTTAsync_disconnectOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,