pub enum QoS {
AtMostOnce = 0,
AtLeastOnce = 1,
ExactlyOnce = 2,
}Expand description
MQTT’s Quality of Service
Variants§
AtMostOnce = 0
Quality of Service Level 0. Publications with this level are only sent once.
AtLeastOnce = 1
Quality of Service Level 1. Publications with this level are sent until a PUBACK indicates that it was received.
ExactlyOnce = 2
Quality of Service Level 2. Publications with this level are followed by a handshake assuring it is received once.
Trait Implementations§
Source§impl From<IdentifiedQoS> for QoS
impl From<IdentifiedQoS> for QoS
Source§fn from(value: IdentifiedQoS) -> Self
fn from(value: IdentifiedQoS) -> Self
Converts to this type from the input type.
Source§impl Ord for QoS
impl Ord for QoS
Source§impl PartialOrd for QoS
impl PartialOrd for QoS
impl Copy for QoS
impl Eq 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