Module transport

Module transport 

Expand description

Modular transport layer.

The Transport trait abstracts the underlying connection.

Modulesยง

tcp ๐Ÿ”’
tls ๐Ÿ”’ tls

Structsยง

TcpTransport
Plain TCP transport.
TlsTransporttls
TLS transport using tokio-rustls.

Traitsยง

Transport
A transport that can establish a byte-stream connection to an MQTT broker.

Functionsยง

connect_nodelay ๐Ÿ”’
Connects a TCP stream to addr and disables Nagle: MQTT sends small control packets and flushes each one, so waiting to coalesce them only adds latency.