[][src]Enum mqtt_codec::QoS

#[repr(u8)]
pub enum QoS {
    AtMostOnce,
    AtLeastOnce,
    ExactlyOnce,
}

Quality of Service levels

Variants

AtMostOnce

At most once delivery

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

At least once delivery

This quality of service ensures that the message arrives at the receiver at least once. A QoS 1 PUBLISH Packet has a Packet Identifier in its variable header and is acknowledged by a PUBACK Packet.

ExactlyOnce

Exactly once delivery

This is the highest quality of service, for use when neither loss nor duplication of messages are acceptable. There is an increased overhead associated with this quality of service.

Trait Implementations

impl From<u8> for QoS[src]

impl Into<u8> for QoS[src]

impl Clone for QoS[src]

impl Copy for QoS[src]

impl Eq for QoS[src]

impl PartialEq<QoS> for QoS[src]

impl Debug for QoS[src]

impl StructuralPartialEq for QoS[src]

impl StructuralEq for QoS[src]

Auto Trait Implementations

impl Send for QoS

impl Sync for QoS

impl Unpin for QoS

impl UnwindSafe for QoS

impl RefUnwindSafe for QoS

Blanket Implementations

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 = !

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.

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

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

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