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