Modules§
Structs§
- Generic
Poll Body State - Generic
Poll Packet - Pid
- Packet identifier
- Poll
Header State - Topic
Filter - Topic filter.
- Topic
Name - Topic name.
Enums§
- Error
- Errors returned by encoding and decoding process.
- Generic
Poll Packet State - Protocol
- Protocol version.
- QoS
- Packet delivery Quality of Service level.
- QosPid
- Combined
QoS
andPid
. - VarBytes
- A bytes data structure represent a dynamic vector or fixed array.
Constants§
- LEVEL_
SEP - Character used to separate each level within a topic tree and provide a hierarchical structure.
- MATCH_
ALL_ CHAR - Wildcard character that matches any number of levels within a topic.
- MATCH_
ALL_ STR - The &str version of
MATCH_ALL_CHAR
- MATCH_
ONE_ CHAR - Wildcard character that matches only one topic level.
- MATCH_
ONE_ STR - The &str version of
MATCH_ONE_CHAR
- SHARED_
PREFIX - Shared topic prefix
- SYS_
PREFIX - System topic prefix
Traits§
- Encodable
- The ability of encoding type into
io::Write
, and calculating encoded size. - Poll
Header
Functions§
- decode_
raw_ header - Read first byte(packet type and flags) and decode remaining length
- header_
len - Calculate header length by given total length (the total length MUST be valid value).
- remaining_
len - Calculate remaining length by given total length (the total length MUST be valid value).
- total_
len - Return the packet total encoded length by a given remaining length.
- var_
int_ len - Return the encoded size of the variable byte integer.