pub enum QoS {
AtMostOnce,
AtLeastOnce,
ExactlyOnce,
}Expand description
MQTT Quality of Service level.
Variants§
AtMostOnce
QoS 0 — fire and forget, no acknowledgement.
AtLeastOnce
QoS 1 — acknowledged delivery, may be duplicated.
ExactlyOnce
QoS 2 — exactly-once delivery via a four-part handshake.
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for QoS
impl PartialOrd for QoS
impl StructuralPartialEq for QoS
Auto Trait Implementations§
impl Forget for QoS
impl Freeze for QoS
impl Move 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