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

Structs

Binary Data is represented by a Two Byte Integer length which indicates the number of data bytes, followed by that number of bytes.
BoolData represents one byte value with two states.
Fixed header part of a mqtt control packet. It consists of as least two bytes.
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.
A UTF-8 String Pair consists of two UTF-8 Encoded Strings.
U16Data represents a two bytes integer.
U32Data represents a four bytes integer.
The Variable Byte Integer is encoded using an encoding scheme which uses a single byte for values up to 127.

Enums

Current version of MQTT protocol can be:

Traits

Functions

Check keep_alive is in range.

Type Definitions

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