#[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
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for QoS
impl TryFrom<u8> for QoS
§type Error = TryFromPrimitiveError<QoS>
type Error = TryFromPrimitiveError<QoS>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for QoS
impl TryFromPrimitive for QoS
impl Copy for QoS
impl StructuralPartialEq for QoS
Auto Trait Implementations§
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