Expand description
§rumqttc-next
rumqttc-next is the default MQTT 5 client crate in the rumqtt family.
It is a facade over rumqttc-v5-next and re-exports that crate’s public API unchanged.
§Scope
- Use
rumqttc-nextwhen you want the current MQTT 5 client under the traditionalrumqttcAPI surface. - Use
rumqttc-v5-nextwhen you want the explicit protocol-scoped package name. - Use
rumqttc-v4-nextwhen you need MQTT 3.1.1 instead of MQTT 5.
§Installation
cargo add rumqttc-next§Features
This crate forwards the MQTT 5 client features from rumqttc-v5-next, including:
use-rustls/use-rustls-no-provider/use-rustls-aws-lc/use-rustls-ringuse-native-tlswebsocketproxyauth-scramurl
See the rumqttc-v5-next documentation for the full API and examples.
Modules§
- mqttbytes
- tokio_
native_ tls - Async TLS streams
- tokio_
rustls - Asynchronous TLS/SSL streams for Tokio using Rustls.
Structs§
- Async
Client - An asynchronous client, communicates with MQTT
EventLoop. - Async
Client Builder - Builder for asynchronous MQTT clients.
- Auth
- Used to perform extended authentication exchange
- Auth
Context - Context supplied to MQTT 5 enhanced-authentication callbacks.
- Auth
Notice - Wait handle returned by tracked re-authentication APIs.
- Auth
Properties - Broker
- Broker target used to construct
MqttOptions. - Client
- A synchronous client, communicates with MQTT
EventLoop. - Client
Builder - Builder for synchronous MQTT clients.
- Codec
- MQTT v4 codec
- ConnAck
- Acknowledgement to connect packet
- Conn
AckProperties - Connect
- Connection packet initiated by the client
- Connect
Properties - Connection
- MQTT connection. Maintains all the necessary state
- Disconnect
- Disconnect
Properties - Event
Loop - Eventloop with all the state of a connection
- Filter
- Subscription filter
- Fixed
Header - Packet type from a byte
- Invalid
Topic - An error returned when a topic string fails validation against the MQTT specification.
- Iter
- Iterator which polls the
EventLoopfor connection progress - Last
Will LastWillthat broker forwards on behalf of the client- Last
Will Properties - Mqtt
Options - Options to configure the behaviour of MQTT connection
- Mqtt
Options Builder - Builder for
MqttOptions. - Mqtt
State - State of the mqtt connection.
- Mqtt
State Builder - Builder for low-level MQTT 5 protocol state.
- Network
Options - Provides a way to configure low level network connection configurations
- PingReq
- Ping
Resp - Proxy
- PubAck
- Acknowledgement to
QoS1publish - PubAck
Properties - PubComp
QoS2Assured publish complete, in response to PUBREL packet- PubComp
Properties - PubRec
- Acknowledgement to
QoS1publish - PubRec
Properties - PubRel
QoS2Publish release, in response to PUBREC packet- PubRel
Properties - Publish
- Publish packet
- Publish
Notice - Wait handle returned by tracked publish APIs.
- Publish
Properties - Recv
Error - Error type returned by
Connection::recv - SubAck
- Acknowledgement to subscribe
- SubAck
Properties - Subscribe
- Subscription packet
- Subscribe
Notice - Wait handle returned by tracked subscribe APIs.
- Subscribe
Properties - Unsub
Ack - Acknowledgement to unsubscribe
- Unsub
AckProperties - Unsubscribe
- Unsubscribe packet
- Unsubscribe
Notice - Wait handle returned by tracked unsubscribe APIs.
- Unsubscribe
Properties - Validated
Topic - A newtype wrapper that guarantees its inner
Stringis a valid MQTT topic.
Enums§
- Auth
Action - Action returned by an
Authenticatorafter an AUTH Continue packet. - Auth
Error - Errors returned by MQTT 5 enhanced-authentication callbacks.
- Auth
Event - Structured authentication lifecycle event yielded by the event loop.
- Auth
Exchange Kind - Identifies which MQTT 5 enhanced-authentication exchange is active.
- Auth
Failure Reason - Structured reason emitted when an authentication exchange fails.
- Auth
Notice Error - Auth
Outcome - Structured result of a completed MQTT 5 authentication exchange.
- Auth
Reason Code - Auth packet reason code
- Client
Error - Client Error
- Connect
Auth - Connect
Return Code - Return code in connack
- Connection
Error - Critical errors during eventloop polling
- Disconnect
Reason Code - Error
- Error during serialization and deserialization
- Event
- Events which can be yielded by the event loop
- Incoming
Packet Size Limit - Controls how incoming packet size limits are enforced locally.
- Manual
Ack - Prepared acknowledgement packet for manual acknowledgement mode.
- Notice
Failure Reason - Option
Error - Outgoing
- Current outgoing activity on the eventloop
- Packet
- Packet
Type - MQTT packet type
- Proxy
Auth - Proxy
Type - PubAck
Reason - Return code in puback
- PubComp
Reason - Return code in
PubComp - PubRec
Reason - Return code in
PubRec - PubRel
Reason - Return code in
PubRel - Publish
Notice Error - Publish
Result - Publish
Topic - Topic argument accepted by publish APIs.
- QoS
- Quality of service
- Recv
Timeout Error - Error type returned by
Connection::recv_timeout - Request
- Requests by the client to mqtt event loop. Request are handled one by one.
- Retain
Forward Rule - State
Error - Errors during state handling
- Subscribe
Notice Error - Subscribe
Reason Code - TlsConfiguration
use-rustls-no-provideroruse-native-tls - TLS configuration method
- TlsError
- Topic
Alias Policy - Policy used for automatic MQTT 5 client-side topic alias assignment.
- Transport
- Transport methods. Defaults to TCP.
- TryRecv
Error - Error type returned by
Connection::try_recv - Unsub
AckReason - Unsubscribe
Notice Error
Traits§
- Authenticator
- MQTT 5 enhanced-authentication callback interface.
Functions§
- check
- Checks whether the stream contains a complete MQTT v5 packet within the configured size limit.
- default_
socket_ connect - Default TCP socket connection logic used by the MQTT event loop.
- has_
wildcards - Checks if a topic or topic filter has wildcards
- matches
- Checks if topic matches a filter. topic and filter validation isn’t done here.
- qos
- Maps a number to
QoS - valid_
filter - Checks if the filter is valid
- valid_
topic - Checks if a topic is valid