Struct poster::SubscriptionOpts
source · pub struct SubscriptionOpts { /* private fields */ }
Expand description
Subscription options set for the topic filter.
Implementations§
source§impl SubscriptionOpts
impl SubscriptionOpts
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SubscriptionOpts instance.
sourcepub fn maximum_qos(self, val: QoS) -> Self
pub fn maximum_qos(self, val: QoS) -> Self
Maximum Quality of Service for the topic.
sourcepub fn retain_as_published(self, val: bool) -> Self
pub fn retain_as_published(self, val: bool) -> Self
Retain as published flag. Setting to true
keeps the RETAIN flag from
incoming PUBLISH packets untouched.
sourcepub fn retain_handling(self, val: RetainHandling) -> Self
pub fn retain_handling(self, val: RetainHandling) -> Self
Retain handling options, see RetainHandling.
Trait Implementations§
source§impl Clone for SubscriptionOpts
impl Clone for SubscriptionOpts
source§fn clone(&self) -> SubscriptionOpts
fn clone(&self) -> SubscriptionOpts
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for SubscriptionOpts
impl Default for SubscriptionOpts
source§fn default() -> SubscriptionOpts
fn default() -> SubscriptionOpts
Returns the “default value” for a type. Read more