Struct kwap_msg::Token [−][src]
Expand description
Message token for matching requests to responses
Note that this is different from Id,
which uniquely identifies a message that may be retransmitted.
For example, Client may send a confirmable message with id 1 and token 321 to Server multiple times, then Server confirms and sends a response with a different id (because it’s a different message), but token 321 (so the client knows which request the response is responding to)
Note that the format of the token is not necessarily an integer according to the coap spec, but is interpreted by this library as an 8 byte unsigned integer in network byte order.
See RFC7252 - Message Details for context
Tuple Fields
0: ArrayVec<[u8; 8]>Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more
