Crate finmqtt_tokio
Expand description
Deprecated. Use finmqtt-client with its tokio
feature instead.
This crate re-exports finmqtt_client::tokio and the types from
finmqtt-core it used to re-export. This is its last release.
To migrate, depend on finmqtt-client with the tokio feature. Import
the client from finmqtt_client::tokio and the protocol types from
finmqtt_core.
Structs§
- Backoff
Multiplier - Exponential backoff multiplier, constrained to be finite and
>= 1.0. - Client
Builder - Builder for an
MqttClient. - Client
Options - Options for the MQTT v5 client.
- Connection
State Watch - A handle for observing the connection status of an
MqttClient. - Connection
Status Stream - A stream of
ConnectionStatustransitions. - Event
Loop Handle - Owns the connection event loop and controls its lifecycle.
- File
Persistence - Configures session persistence backed by a CRC-framed journal file.
- Jitter
- Backoff jitter as a fraction of the delay, constrained to
0.0..=1.0. - Message
- An incoming MQTT v5 message from the broker.
- Message
Stream - A stream of incoming MQTT messages.
- Mqtt
Bytes - A byte slice that satisfies the MQTT v5 Binary Data length limit (at most 65 535 bytes).
- Mqtt
Bytes Buf - Owned binary data that satisfies the MQTT v5 length limit.
- Mqtt
Client - A session-oriented MQTT v5 client.
- MqttStr
- A UTF-8 string that meets the MQTT v5 requirements:
- Mqtt
String - An owned UTF-8 string that meets the MQTT v5 requirements.
- NonZero
Vbi - Non-zero Variable Byte Integer.
- Packet
Id - MQTT Packet Identifier (§2.2.1).
- Publish
Builder - Builder for publishing a message with optional MQTT v5 properties.
- Publish
Future - A pending publish operation.
- Publish
Options - MQTT v5 properties to attach to an outgoing PUBLISH.
- Queued
Publish Future - Future returned by
PublishFuture::queued. - Queued
Subscribe Future - A lazy future that resolves as soon as the subscription is recorded locally.
- Queued
Unsubscribe Future - A lazy future that resolves as soon as the unsubscribe is recorded locally.
- Reconnect
Options - Configuration for automatic reconnection with exponential backoff.
- Session
Persistence - Configures how a client’s session is durably persisted across restarts.
- Subscribe
Builder - Builder for subscribing to one or more topic filters.
- Subscribe
Future - A lazy future returned by
SubscribeBuilder::send. - Subscription
- A topic filter with its associated subscription options.
- TcpTransport
- Plain TCP transport.
- TlsTransport
- TLS transport using
tokio-rustls. - Topic
- A validated, borrowed MQTT topic name.
- Topic
Buf - An owned, validated MQTT topic name.
- Topic
Filter - A validated, borrowed MQTT topic filter.
- Topic
Filter Buf - An owned, validated MQTT topic filter.
- Turso
Persistence - Configures session persistence backed by a turso database.
- Unsubscribe
Builder - Builder for unsubscribing from one or more topic filters.
- Unsubscribe
Future - A lazy future returned by
UnsubscribeBuilder::send. - Will
Options - Configuration for the MQTT will message (Last Will and Testament).
Enums§
- Clean
Start - Whether to start a new session when the client starts (§3.1.2.4).
- Client
Error - Errors from the client state machine.
- Connection
Status - The connection status of an
MqttClient. - Decode
Error - Errors that can occur during decoding.
- Disconnect
Cause - Why a connection went down, reported by
Reconnecting. Deliberately coarse. The full error detail is available throughtracing. - Error
- Errors that can occur in the MQTT client.
- Filter
Outcome - The result for one topic filter of a subscribe or unsubscribe request.
- Payload
Format - Payload format indicator (§3.3.2.3.2).
- Properties
BufError - Error returned by fallible mutation methods on
PropertiesBuf. - Publish
Progress - Observable lifecycle of a publish operation.
- QoS
- Quality of Service level.
- Reason
Code - All MQTT v5 reason codes.
- Retain
Handling - Retain handling option for SUBSCRIBE.
- Topic
Error - Error returned when constructing a
Topic,TopicFilter, or their owned counterparts. - Unsupported
- An optional server capability (§3.2.2.3) that an operation needs but the server lacks.
Constants§
- DEFAULT_
ACK_ TIMEOUT - Default
ack_timeout: 60 seconds. - DEFAULT_
COMMAND_ CHANNEL_ CAPACITY - Default capacity of the command channel between client handles and the connection event loop.
- DEFAULT_
CONNECT_ TIMEOUT - Default
connect_timeout: 30 seconds. - DEFAULT_
MAX_ PACKET_ SIZE - Default
maximum_packet_size: 16 MiB. - DEFAULT_
MESSAGE_ CHANNEL_ CAPACITY - Default capacity of the inbound message channel that feeds the
MessageStream.
Traits§
- Transport
- A transport that can establish a byte-stream connection to an MQTT broker.