[][src]Enum sage_mqtt::QoS

pub enum QoS {
    AtMostOnce,
    AtLeastOnce,
    ExactlyOnce,
}

Description the quality of service used in message publishing.

Variants

AtMostOnce

The message is delivered according to the capabilities of the underlying network. No response is sent by the receiver and no retry is performed by the sender. The message arrives at the receiver either once or not at all.

AtLeastOnce

This Quality of Service level ensures that the message arrives at the receiver at least once. A QoS 1 PUBLISH packet has a Packet Identifier and is acknowledged by a Puback packet.

ExactlyOnce

This is the highest Quality of Service level, for use when neither loss nor duplication of messages are acceptable. There is an increased overhead associated with QoS 2. A QoS 2 message has a Packet Identifier. The receiver of a QoS 2 Publish packet acknowledges receipt with a two-step acknowledgement process.

Trait Implementations

impl Clone for QoS[src]

impl Copy for QoS[src]

impl Debug for QoS[src]

impl Eq for QoS[src]

impl PartialEq<QoS> for QoS[src]

impl StructuralEq for QoS[src]

impl StructuralPartialEq for QoS[src]

impl TryFrom<u8> for QoS[src]

type Error = SageError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for QoS

impl Send for QoS

impl Sync for QoS

impl Unpin for QoS

impl UnwindSafe for QoS

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.