Struct sage_mqtt::SubscriptionOptions [−][src]
pub struct SubscriptionOptions {
pub qos: QoS,
pub no_local: bool,
pub retain_as_published: bool,
pub retain_handling: RetainHandling,
}
Expand description
Options used to describe a specific subscription.
Fields
qos: QoS
The maximum quality of service the client is expected to receive messages.
no_local: bool
If the value is true
, messages must not be forwarded to a connection
with a ClientID equal to the client id of the publishing connection.
retain_as_published: bool
If true
messages forwarded using this subscription will keep their
retain flag unchanged. Otherwise they won’t be retain messages anymore.
retain_handling: RetainHandling
How retain messages are handled upon subscription.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SubscriptionOptions
impl Send for SubscriptionOptions
impl Sync for SubscriptionOptions
impl Unpin for SubscriptionOptions
impl UnwindSafe for SubscriptionOptions
Blanket Implementations
Mutably borrows from an owned value. Read more