[−][src]Struct paho_mqtt::subscribe_options::SubscribeOptionsBuilder
Methods
impl SubscribeOptionsBuilder
[src]
pub fn new() -> Self
[src]
Create a new SubscribeOptionsBuilder
pub fn no_local(self, on: bool) -> Self
[src]
Set so that the client doesn't receive its own messages that it publishes on the topic.
pub fn retain_as_published(self, retain: bool) -> 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(self, handling: RetainHandling) -> 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]
fn default() -> SubscribeOptionsBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for SubscribeOptionsBuilder
impl Send for SubscribeOptionsBuilder
impl Sync for SubscribeOptionsBuilder
impl Unpin for SubscribeOptionsBuilder
impl UnwindSafe for SubscribeOptionsBuilder
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, 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>,