pub enum IdentifiedQoS {
AtMostOnce,
AtLeastOnce(PacketIdentifier),
ExactlyOnce(PacketIdentifier),
}Expand description
MQTT’s Quality of Service with special reference to the PUBLISH packet which contains a packet identifier if its Quality of Service is greater than 0.
Variants§
AtMostOnce
Quality of Service Level 0. PUBLISH packets do not contain a packet identifier.
AtLeastOnce(PacketIdentifier)
Quality of Service Level 1. PUBLISH packets contain the included packet identifier.
ExactlyOnce(PacketIdentifier)
Quality of Service Level 2. PUBLISH packets contain the included packet identifier.
Implementations§
Source§impl IdentifiedQoS
impl IdentifiedQoS
Sourcepub const fn packet_identifier(&self) -> Option<PacketIdentifier>
pub const fn packet_identifier(&self) -> Option<PacketIdentifier>
Trait Implementations§
Source§impl Clone for IdentifiedQoS
impl Clone for IdentifiedQoS
Source§fn clone(&self) -> IdentifiedQoS
fn clone(&self) -> IdentifiedQoS
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdentifiedQoS
impl Debug for IdentifiedQoS
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 PartialEq for IdentifiedQoS
impl PartialEq for IdentifiedQoS
impl Copy for IdentifiedQoS
impl Eq for IdentifiedQoS
impl StructuralPartialEq for IdentifiedQoS
Auto Trait Implementations§
impl Freeze for IdentifiedQoS
impl RefUnwindSafe for IdentifiedQoS
impl Send for IdentifiedQoS
impl Sync for IdentifiedQoS
impl Unpin for IdentifiedQoS
impl UnsafeUnpin for IdentifiedQoS
impl UnwindSafe for IdentifiedQoS
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