[][src]Enum mosquitto_rs::QoS

pub enum QoS {
    AtMostOnce,
    AtLeastOnce,
    ExactlyOnce,
}

Variants

AtMostOnce

This is the simplest, lowest-overhead method of sending a message. The client simply publishes the message, and there is no acknowledgement by the broker.

AtLeastOnce

This method guarantees that the message will be transferred successfully to the broker. The broker sends an acknowledgement back to the sender, but in the event that that the acknowledgement is lost the sender won't realise the message has got through, so will send the message again. The client will re-send until it gets the broker's acknowledgement. This means that sending is guaranteed, although the message may reach the broker more than once.

ExactlyOnce

This is the highest level of service, in which there is a sequence of four messages between the sender and the receiver, a kind of handshake to confirm that the main message has been sent and that the acknowledgement has been received. When the handshake has been completed, both sender and receiver are sure that the message was sent exactly once.

Trait Implementations

impl Clone for QoS[src]

impl Copy for QoS[src]

impl Debug for QoS[src]

impl Default for QoS[src]

impl Eq for QoS[src]

impl PartialEq<QoS> for QoS[src]

impl StructuralEq for QoS[src]

impl StructuralPartialEq for QoS[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.