Enum AckQoS
#[repr(u8)]pub enum AckQoS {
AtLeastOnce = 1,
ExactlyOnce = 2,
}Expand description
A QoS level that the receiver acknowledges: 1 or 2.
Outgoing messages at these levels are stored until acknowledged.
Variants§
AtLeastOnce = 1
At least once delivery, acknowledged with PUBACK.
ExactlyOnce = 2
Exactly once delivery, acknowledged with PUBREC, PUBREL and PUBCOMP.
Implementations§
Trait Implementations§
impl Copy for AckQoS
impl Eq for AckQoS
§impl Ord for AckQoS
impl Ord for AckQoS
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
§impl PartialOrd for AckQoS
impl PartialOrd for AckQoS
impl StructuralPartialEq for AckQoS
Auto Trait Implementations§
impl Freeze for AckQoS
impl RefUnwindSafe for AckQoS
impl Send for AckQoS
impl Sync for AckQoS
impl Unpin for AckQoS
impl UnsafeUnpin for AckQoS
impl UnwindSafe for AckQoS
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