[][src]Struct paho_mqtt::subscribe_options::SubscribeOptionsBuilder

pub struct SubscribeOptionsBuilder { /* fields omitted */ }

Builder for creating subscription options.

Implementations

impl SubscribeOptionsBuilder[src]

pub fn new() -> Self[src]

Create a new SubscribeOptionsBuilder

pub fn no_local(&mut self, on: bool) -> &mut Self[src]

Set so that the client doesn't receive its own messages that it publishes on the topic.

pub fn retain_as_published(&mut self, retain: bool) -> &mut Self[src]

Set to keep the retain flag as on the original published message. If not set, the original MQTT behavior is where the retain flag is only set on publications sent by a broker if in response to a subscribe request.

pub fn retain_handling(&mut self, handling: RetainHandling) -> &mut Self[src]

Sets how retained messages are handled.

pub fn finalize(&self) -> SubscribeOptions[src]

Finalizes the builder to create the subscribe options.

Trait Implementations

impl Debug for SubscribeOptionsBuilder[src]

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