Skip to main content

Module transport

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ยง

tcp ๐Ÿ”’
tls ๐Ÿ”’ tls

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.