Enum mqtt::packet::publish::QoSWithPacketIdentifier
source · pub enum QoSWithPacketIdentifier {
Level0,
Level1(u16),
Level2(u16),
}
Expand description
QoS with identifier pairs
Variants§
Implementations§
source§impl QoSWithPacketIdentifier
impl QoSWithPacketIdentifier
pub fn new(qos: QualityOfService, id: u16) -> QoSWithPacketIdentifier
pub fn split(self) -> (QualityOfService, Option<u16>)
Trait Implementations§
source§impl Clone for QoSWithPacketIdentifier
impl Clone for QoSWithPacketIdentifier
source§fn clone(&self) -> QoSWithPacketIdentifier
fn clone(&self) -> QoSWithPacketIdentifier
Returns a copy 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 QoSWithPacketIdentifier
impl Debug for QoSWithPacketIdentifier
source§impl From<QoSWithPacketIdentifier> for QualityOfService
impl From<QoSWithPacketIdentifier> for QualityOfService
source§fn from(qos: QoSWithPacketIdentifier) -> Self
fn from(qos: QoSWithPacketIdentifier) -> Self
Converts to this type from the input type.
source§impl Ord for QoSWithPacketIdentifier
impl Ord for QoSWithPacketIdentifier
source§fn cmp(&self, other: &QoSWithPacketIdentifier) -> Ordering
fn cmp(&self, other: &QoSWithPacketIdentifier) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for QoSWithPacketIdentifier
impl PartialEq for QoSWithPacketIdentifier
source§fn eq(&self, other: &QoSWithPacketIdentifier) -> bool
fn eq(&self, other: &QoSWithPacketIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QoSWithPacketIdentifier
impl PartialOrd for QoSWithPacketIdentifier
source§fn partial_cmp(&self, other: &QoSWithPacketIdentifier) -> Option<Ordering>
fn partial_cmp(&self, other: &QoSWithPacketIdentifier) -> Option<Ordering>
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 moreimpl Copy for QoSWithPacketIdentifier
impl Eq for QoSWithPacketIdentifier
impl StructuralPartialEq for QoSWithPacketIdentifier
Auto Trait Implementations§
impl Freeze for QoSWithPacketIdentifier
impl RefUnwindSafe for QoSWithPacketIdentifier
impl Send for QoSWithPacketIdentifier
impl Sync for QoSWithPacketIdentifier
impl Unpin for QoSWithPacketIdentifier
impl UnwindSafe for QoSWithPacketIdentifier
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