pub struct Id(pub u16);
Expand description
Message ID
16-bit unsigned integer in network byte order. Used to detect message duplication and to match messages of type Acknowledgement/Reset to messages of type Confirmable/Non- confirmable. The rules for generating a Message ID and matching messages are defined in RFC7252 Section 4
For a little more context and the difference between Id
and Token
, see Token
.
See RFC7252 - Message Details for context
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
source§impl Ord for Id
impl Ord for Id
source§impl PartialOrd<Id> for Id
impl PartialOrd<Id> for Id
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 more