Enum mqtt_codec_kit::common::qos::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§impl PartialOrd for QoSWithPacketIdentifier
impl PartialOrd for QoSWithPacketIdentifier
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)