[][src]Struct paho_mqtt_sys::MQTTSubscribe_options

#[repr(C)]pub struct MQTTSubscribe_options {
    pub struct_id: [c_char; 4],
    pub struct_version: c_int,
    pub noLocal: c_uchar,
    pub retainAsPublished: c_uchar,
    pub retainHandling: c_uchar,
}

The MQTT V5 subscribe options, apart from QoS which existed before V5.

Fields

struct_id: [c_char; 4]

The eyecatcher for this structure. Must be MQSO.

struct_version: c_int

The version number of this structure. Must be 0.

noLocal: c_uchar

To not receive our own publications, set to 1. 0 is the original MQTT behaviour - all messages matching the subscription are received.

retainAsPublished: c_uchar

To keep the retain flag as on the original publish message, set to 1. If 0, defaults to the original MQTT behaviour where the retain flag is only set on publications sent by a broker if in response to a subscribe request.

retainHandling: c_uchar

0 - send retained messages at the time of the subscribe (original MQTT behaviour) 1 - send retained messages on subscribe only if the subscription is new 2 - do not send retained messages at all

Trait Implementations

impl Clone for MQTTSubscribe_options[src]

impl Copy for MQTTSubscribe_options[src]

impl Debug for MQTTSubscribe_options[src]

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