Enum mqtt::QoS [] [src]

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

Quality of Service levels

Variants

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.

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.

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

[src]

Formats the value using the given formatter.

impl Clone for QoS
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for QoS
[src]

impl PartialEq for QoS
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for QoS
[src]

impl From<u8> for QoS
[src]

[src]

Performs the conversion.

impl Into<u8> for QoS
[src]

[src]

Performs the conversion.