[][src]Enum ntex_mqtt::types::QoS

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

Quality of Service

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 Clone for QoS[src]

impl Copy for QoS[src]

impl Debug for QoS[src]

impl Eq for QoS[src]

impl From<QoS> for u8[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 = DecodeError

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,