Module prelude

Source
Expand description

Convenient imports for common use cases

Structs§

BincodeSerializer
Default serializer using bincode format.
ClientSettings
Client-level performance and behavior settings for the MQTT typed client.
MqttClient
Type-safe MQTT client with automatic subscription management.
MqttClientConfig
Configuration for MQTT client creation
MqttConnection
MQTT connection handle for lifecycle management
MqttOptions
Options to configure the behaviour of MQTT connection
MqttPublisher
Typed MQTT publisher for a specific topic.
MqttSubscriber
Typed MQTT subscriber for topic patterns.
MqttTopicSubscriber
Structured MQTT subscriber with automatic topic parameter extraction.
SubscriptionBuilder
Immutable builder for configuring MQTT subscriptions
TypedLastWill
Represents a Last Will and Testament (LWT) message for MQTT clients.

Enums§

MessageConversionError
Errors that occur during message conversion from MQTT topics.
MqttClientError
Errors that can occur in MQTT client operations
QoS
Quality of service

Traits§

FromMqttMessage
Trait for converting MQTT messages into structured types.
MessageSerializer
Trait for serializing and deserializing MQTT message payloads.

Functions§

extract_topic_parameter
Extract and parse a topic parameter by wildcard index

Type Aliases§

Result
Result type alias for operations that may fail with MqttClientError

Attribute Macros§

mqtt_topic
Generate a typed MQTT subscriber and/or publisher from a struct and topic pattern