Module transport

Module transport 

Source
Expand description

§MQTT Transport Abstraction

This module defines the MqttTransport trait, which abstracts the underlying communication channel (like TCP, UART, etc.), allowing the MQTT client to be hardware and network-stack agnostic.

With the Rust 2024 Edition, this trait uses native async fn, removing the need for the #[async_trait] macro.

Structs§

ErrorPlaceHolder
A placeholder error type used in contexts where the actual transport error is not known, such as in the EncodePacket trait.

Traits§

MqttTransport
A trait representing a transport for MQTT packets.
TransportError
A marker trait for transport-related errors.