Module transport
Available on crate feature
tokio only.Expand description
Modular transport layer.
The Transport trait abstracts the underlying connection.
Re-exportsยง
pub use self::tcp::TcpTransport;pub use self::tls::TlsTransport;tls
Modulesยง
Traitsยง
- Transport
- A transport that can establish a byte-stream connection to an MQTT broker.
Functionsยง
- connect_
nodelay ๐ - Connects a TCP stream to
addrand disables Nagle: MQTT sends small control packets and flushes each one, so waiting to coalesce them only adds latency.