Struct paho_mqtt3as_sys::MQTTAsync_responseOptions
[−]
[src]
#[repr(C)]pub struct MQTTAsync_responseOptions { pub struct_id: [c_char; 4], pub struct_version: c_int, pub onSuccess: MQTTAsync_onSuccess, pub onFailure: MQTTAsync_onFailure, pub context: *mut c_void, pub token: MQTTAsync_token, }
Fields
struct_id: [c_char; 4]
The eyecatcher for this structure. Must be MQTR
struct_version: c_int
The version number of this structure. Must be 0
onSuccess: MQTTAsync_onSuccess
A pointer to a callback function to be called if the API call 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 API call 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.
token: MQTTAsync_token
Trait Implementations
impl Debug for MQTTAsync_responseOptions
[src]
impl Copy for MQTTAsync_responseOptions
[src]
impl Clone for MQTTAsync_responseOptions
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for MQTTAsync_responseOptions
[src]
fn default() -> MQTTAsync_responseOptions
Returns the "default value" for a type. Read more