Struct paho_mqtt3as_sys::MQTTAsync_willOptions [] [src]

#[repr(C)]
pub struct MQTTAsync_willOptions { pub struct_id: [c_char; 4], pub struct_version: c_int, pub topicName: *const c_char, pub message: *const c_char, pub retained: c_int, pub qos: c_int, pub payload: MQTTAsync_willOptions__bindgen_ty_1, }

MQTTAsync_willOptions defines the MQTT "Last Will and Testament" (LWT) settings for the client. In the event that a client unexpectedly loses its connection to the server, the server publishes the LWT message to the LWT topic on behalf of the client. This allows other clients (subscribed to the LWT topic) to be made aware that the client has disconnected. To enable the LWT function for a specific client, a valid pointer to an MQTTAsync_willOptions structure is passed in the MQTTAsync_connectOptions structure used in the MQTTAsync_connect() call that connects the client to the server. The pointer to MQTTAsync_willOptions can be set to NULL if the LWT function is not required.

Fields

The eyecatcher for this structure. must be MQTW.

The version number of this structure. Must be 0 or 1 0 indicates no binary will message support

The LWT topic to which the LWT message will be published.

The LWT payload.

The retained flag for the LWT message (see MQTTAsync_message.retained).

The quality of service setting for the LWT message (see MQTTAsync_message.qos and @ref qos).

Trait Implementations

impl Debug for MQTTAsync_willOptions
[src]

Formats the value using the given formatter.

impl Copy for MQTTAsync_willOptions
[src]

impl Clone for MQTTAsync_willOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for MQTTAsync_willOptions
[src]

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