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§
Source§impl Clone for SubscriptionOptions
impl Clone for SubscriptionOptions
Source§fn clone(&self) -> SubscriptionOptions
fn clone(&self) -> SubscriptionOptions
Returns a duplicate 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 Debug for SubscriptionOptions
impl Debug for SubscriptionOptions
Source§impl Default for SubscriptionOptions
impl Default for SubscriptionOptions
Source§impl PartialEq for SubscriptionOptions
impl PartialEq for SubscriptionOptions
impl Copy for SubscriptionOptions
impl StructuralPartialEq for SubscriptionOptions
Auto Trait Implementations§
impl Freeze for SubscriptionOptions
impl RefUnwindSafe for SubscriptionOptions
impl Send for SubscriptionOptions
impl Sync for SubscriptionOptions
impl Unpin for SubscriptionOptions
impl UnwindSafe for SubscriptionOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more