Skip to main content

Crate finmqtt_core

Crate finmqtt_core 

Expand description

Sans-io, no_std, no-alloc, zero-copy MQTT v5 protocol implementation.

Operates on byte slices only. It does not perform I/O or heap allocation, and it does not need an async runtime. Packets borrow from the input buffer (zero-copy decode). Encoding writes into a caller-provided Sink.

§Features

The default build is allocation-free. Enabling alloc adds heap-backed conveniences (the growable GrowBuffer, owned *Buf types and MqttString, and try_with_capacity/take helpers) without changing the no-alloc paths.

Modules§

codec
Framing helpers for turning a byte stream into Packets and back.
packet
Control packet types. Zero-copy decode, borrowed from the input buffer.
property
Property encoding, decoding, and iteration.
topic 🔒
Validated topic names and topic filters.
wire
Wire-format primitives.

Structs§

Topic
A validated, borrowed MQTT topic name.
TopicBufalloc
An owned, validated MQTT topic name.
TopicFilter
A validated, borrowed MQTT topic filter.
TopicFilterBufalloc
An owned, validated MQTT topic filter.

Enums§

ParseTopicError
Error returned when parsing a topic from an unvalidated string.
TopicError
Error returned when constructing a Topic, TopicFilter, or their owned counterparts.