[−][src]Struct paho_mqtt::subscribe_options::SubscribeOptionsBuilder
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]
pub fn default() -> SubscribeOptionsBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for SubscribeOptionsBuilder
[src]
impl Send for SubscribeOptionsBuilder
[src]
impl Sync for SubscribeOptionsBuilder
[src]
impl Unpin for SubscribeOptionsBuilder
[src]
impl UnwindSafe for SubscribeOptionsBuilder
[src]
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,
pub 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, 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.
pub 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>,