pub enum QualityOfService {
AtMostOnce,
AtLeastOnce,
ExactlyOnce,
}Expand description
The delivery guarantee applied to published and subscribed messages.
These map one-to-one onto the MQTT protocol’s quality-of-service levels.
Variants§
AtMostOnce
Fire and forget: the broker does not acknowledge delivery.
AtLeastOnce
The message is delivered at least once and acknowledged.
ExactlyOnce
The message is delivered exactly once via a four-step handshake.
Trait Implementations§
Source§impl Clone for QualityOfService
impl Clone for QualityOfService
Source§fn clone(&self) -> QualityOfService
fn clone(&self) -> QualityOfService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QualityOfService
Source§impl Debug for QualityOfService
impl Debug for QualityOfService
impl Eq for QualityOfService
Source§impl From<QualityOfService> for QoS
impl From<QualityOfService> for QoS
Source§fn from(value: QualityOfService) -> Self
fn from(value: QualityOfService) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QualityOfService
impl PartialEq for QualityOfService
Source§fn eq(&self, other: &QualityOfService) -> bool
fn eq(&self, other: &QualityOfService) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QualityOfService
Auto Trait Implementations§
impl Freeze for QualityOfService
impl RefUnwindSafe for QualityOfService
impl Send for QualityOfService
impl Sync for QualityOfService
impl Unpin for QualityOfService
impl UnsafeUnpin for QualityOfService
impl UnwindSafe for QualityOfService
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