Crate hebo_codec

Crate hebo_codec 

Source

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§

base
byte_array
error
topic
utils
v3
v5

Structs§

BinaryData
Binary Data is represented by a Two Byte Integer length which indicates the number of data bytes, followed by that number of bytes.
BoolData
BoolData represents one byte value with two states.
FixedHeader
Fixed header part of a mqtt control packet. It consists of as least two bytes.
StringData
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.
StringPairData
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§

PacketType
ProtocolLevel
Current version of MQTT protocol can be:
VarIntError

Traits§

Packet

Functions§

validate_keep_alive
Check keep_alive is in range.

Type Aliases§

KeepAlive
KeepAlive presents connection keep-alive time in milliseconds.
PacketId
Packet identifier