#[repr(u8)]pub enum QoS {
AtMostOnce = 0,
AtLeastOnce = 1,
ExactlyOnce = 2,
}
Expand description
The quality-of-service for an MQTT message.
Variants§
AtMostOnce = 0
A packet will be delivered at most once, but may not be delivered at all.
AtLeastOnce = 1
A packet will be delivered at least one time, but possibly more than once.
ExactlyOnce = 2
A packet will be delivered exactly one time.
Trait Implementations§
Source§impl PartialOrd for QoS
impl PartialOrd for QoS
Source§impl TryFromPrimitive for QoS
impl TryFromPrimitive for QoS
impl Copy 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 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