[−][src]Struct paho_mqtt_sys::MQTTAsync_createOptions
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]
pub fn default_v5() -> MQTTAsync_createOptions
[src]
Trait Implementations
impl Clone for MQTTAsync_createOptions
[src]
fn clone(&self) -> MQTTAsync_createOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MQTTAsync_createOptions
[src]
impl Debug for MQTTAsync_createOptions
[src]
impl Default for MQTTAsync_createOptions
[src]
fn default() -> MQTTAsync_createOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for MQTTAsync_createOptions
impl Send for MQTTAsync_createOptions
impl Sync for MQTTAsync_createOptions
impl Unpin for MQTTAsync_createOptions
impl UnwindSafe for MQTTAsync_createOptions
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,