[][src]Struct sage_mqtt::SubscriptionOptions

pub struct SubscriptionOptions {
    pub qos: QoS,
    pub no_local: bool,
    pub retain_as_published: bool,
    pub retain_handling: RetainHandling,
}

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

impl Clone for SubscriptionOptions[src]

impl Copy for SubscriptionOptions[src]

impl Debug for SubscriptionOptions[src]

impl Default for SubscriptionOptions[src]

impl PartialEq<SubscriptionOptions> for SubscriptionOptions[src]

impl StructuralPartialEq for SubscriptionOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.