Skip to main content

Crate finmqtt_tokio

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§

BackoffMultiplier
Exponential backoff multiplier, constrained to be finite and >= 1.0.
ClientBuilder
Builder for an MqttClient.
ClientOptions
Options for the MQTT v5 client.
ConnectionStateWatch
A handle for observing the connection status of an MqttClient.
ConnectionStatusStream
A stream of ConnectionStatus transitions.
EventLoopHandle
Owns the connection event loop and controls its lifecycle.
FilePersistence
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.
MessageStream
A stream of incoming MQTT messages.
MqttBytes
A byte slice that satisfies the MQTT v5 Binary Data length limit (at most 65 535 bytes).
MqttBytesBuf
Owned binary data that satisfies the MQTT v5 length limit.
MqttClient
A session-oriented MQTT v5 client.
MqttStr
A UTF-8 string that meets the MQTT v5 requirements:
MqttString
An owned UTF-8 string that meets the MQTT v5 requirements.
NonZeroVbi
Non-zero Variable Byte Integer.
PacketId
MQTT Packet Identifier (§2.2.1).
PublishBuilder
Builder for publishing a message with optional MQTT v5 properties.
PublishFuture
A pending publish operation.
PublishOptions
MQTT v5 properties to attach to an outgoing PUBLISH.
QueuedPublishFuture
Future returned by PublishFuture::queued.
QueuedSubscribeFuture
A lazy future that resolves as soon as the subscription is recorded locally.
QueuedUnsubscribeFuture
A lazy future that resolves as soon as the unsubscribe is recorded locally.
ReconnectOptions
Configuration for automatic reconnection with exponential backoff.
SessionPersistence
Configures how a client’s session is durably persisted across restarts.
SubscribeBuilder
Builder for subscribing to one or more topic filters.
SubscribeFuture
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.
TopicBuf
An owned, validated MQTT topic name.
TopicFilter
A validated, borrowed MQTT topic filter.
TopicFilterBuf
An owned, validated MQTT topic filter.
TursoPersistence
Configures session persistence backed by a turso database.
UnsubscribeBuilder
Builder for unsubscribing from one or more topic filters.
UnsubscribeFuture
A lazy future returned by UnsubscribeBuilder::send.
WillOptions
Configuration for the MQTT will message (Last Will and Testament).

Enums§

CleanStart
Whether to start a new session when the client starts (§3.1.2.4).
ClientError
Errors from the client state machine.
ConnectionStatus
The connection status of an MqttClient.
DecodeError
Errors that can occur during decoding.
DisconnectCause
Why a connection went down, reported by Reconnecting. Deliberately coarse. The full error detail is available through tracing.
Error
Errors that can occur in the MQTT client.
FilterOutcome
The result for one topic filter of a subscribe or unsubscribe request.
PayloadFormat
Payload format indicator (§3.3.2.3.2).
PropertiesBufError
Error returned by fallible mutation methods on PropertiesBuf.
PublishProgress
Observable lifecycle of a publish operation.
QoS
Quality of Service level.
ReasonCode
All MQTT v5 reason codes.
RetainHandling
Retain handling option for SUBSCRIBE.
TopicError
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.