[−][src]Struct paho_mqtt_sys::MQTTAsync_willOptions
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
struct_id: [c_char; 4]
The eyecatcher for this structure. must be MQTW.
struct_version: c_int
The version number of this structure. Must be 0 or 1 0 indicates no binary will message support
topicName: *const c_char
The LWT topic to which the LWT message will be published.
message: *const c_char
The LWT payload.
retained: c_int
The retained flag for the LWT message (see MQTTAsync_message.retained).
qos: c_int
The quality of service setting for the LWT message (see MQTTAsync_message.qos and @ref qos).
payload: MQTTAsync_willOptions__bindgen_ty_1
Trait Implementations
impl Clone for MQTTAsync_willOptions
[src]
pub fn clone(&self) -> MQTTAsync_willOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MQTTAsync_willOptions
[src]
impl Debug for MQTTAsync_willOptions
[src]
impl Default for MQTTAsync_willOptions
[src]
pub fn default() -> MQTTAsync_willOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for MQTTAsync_willOptions
[src]
impl !Send for MQTTAsync_willOptions
[src]
impl !Sync for MQTTAsync_willOptions
[src]
impl Unpin for MQTTAsync_willOptions
[src]
impl UnwindSafe for MQTTAsync_willOptions
[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>,