#[repr(u8)]pub enum QoS {
AtMostOnce = 0,
AtLeastOnce = 1,
ExactlyOnce = 2,
}Expand description
MQTT Quality of Service levels
Defines delivery guarantees for MQTT messages:
AtMostOnce(0): Best effort delivery, no guaranteesAtLeastOnce(1): Message delivered at least once, duplicates possibleExactlyOnce(2): Message delivered exactly once, highest guarantee
Variants§
AtMostOnce = 0
QoS 0: At most once delivery (fire and forget)
AtLeastOnce = 1
QoS 1: At least once delivery (acknowledged delivery)
ExactlyOnce = 2
QoS 2: Exactly once delivery (assured delivery)
Implementations§
Trait Implementations§
impl Copy for QoS
impl Eq for QoS
Source§impl Ord for QoS
impl Ord for QoS
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for QoS
impl PartialOrd for QoS
impl StructuralPartialEq for QoS
Auto Trait Implementations§
impl Freeze for QoS
impl RefUnwindSafe for QoS
impl Send for QoS
impl Sync for QoS
impl Unpin for QoS
impl UnsafeUnpin for QoS
impl UnwindSafe for QoS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.