Re-exports§
pub use base::DecodePacket;
pub use base::EncodePacket;
pub use base::QoS;
pub use byte_array::ByteArray;
pub use error::DecodeError;
pub use error::EncodeError;
pub use topic::PubTopic;
pub use topic::SubTopic;
pub use topic::SubscribePattern;
pub use topic::Topic;
pub use topic::TopicError;
pub use topic::TopicPart;
Modules§
Structs§
- Binary
Data - Binary Data is represented by a Two Byte Integer length which indicates the number of data bytes, followed by that number of bytes.
- Bool
Data BoolData
represents one byte value with two states.- Fixed
Header - Fixed header part of a mqtt control packet. It consists of as least two bytes.
- String
Data - Text fields within the MQTT Control Packets described later are encoded as UTF-8 strings. UTF-8 RFC3629 is an efficient encoding of Unicode Unicode characters that optimizes the encoding of ASCII characters in support of text-based communications.
- String
Pair Data - A UTF-8 String Pair consists of two UTF-8 Encoded Strings.
- U16Data
U16Data
represents a two bytes integer.- U32Data
U32Data
represents a four bytes integer.- VarInt
- The Variable Byte Integer is encoded using an encoding scheme which uses a single byte for values up to 127.
Enums§
- Packet
Type - Protocol
Level - Current version of MQTT protocol can be:
- VarInt
Error
Traits§
Functions§
- validate_
keep_ alive - Check
keep_alive
is in range.