[][src]Struct paho_mqtt_sys::MQTTAsync_createOptions

#[repr(C)]pub struct MQTTAsync_createOptions {
    pub struct_id: [c_char; 4],
    pub struct_version: c_int,
    pub sendWhileDisconnected: c_int,
    pub maxBufferedMessages: c_int,
    pub MQTTVersion: c_int,
}

Options for the ::MQTTAsync_createWithOptions call

Fields

struct_id: [c_char; 4]

The eyecatcher for this structure. must be MQCO.

struct_version: c_int

The version number of this structure. Must be 0 or 1 0 means no MQTTVersion

sendWhileDisconnected: c_int

Whether to allow messages to be sent when the client library is not connected.

maxBufferedMessages: c_int

the maximum number of messages allowed to be buffered while not connected.

MQTTVersion: c_int

Whether the MQTT version is 3.1, 3.1.1, or 5. To use V5, this must be set. MQTT V5 has to be chosen here, because during the create call the message persistence is initialized, and we want to know whether the format of any persisted messages is appropriate for the MQTT version we are going to connect with. Selecting 3.1 or 3.1.1 and attempting to read 5.0 persisted messages will result in an error on create.

Methods

impl MQTTAsync_createOptions[src]

Trait Implementations

impl Clone for MQTTAsync_createOptions[src]

impl Copy for MQTTAsync_createOptions[src]

impl Debug for MQTTAsync_createOptions[src]

impl Default for MQTTAsync_createOptions[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.