Enum mqtt::QoS
[−]
[src]
#[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 Debug for QoS
[src]
impl Clone for QoS
[src]
fn clone(&self) -> QoS
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for QoS
[src]
impl PartialEq for QoS
[src]
fn eq(&self, __arg_0: &QoS) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.