Expand description
This is the Eclipse Paho MQTT client library for the Rust language.
Re-exports§
pub use crate::topic_matcher::TopicMatcher;
pub use crate::async_client::*;
pub use crate::client::*;
pub use crate::client_persistence::*;
pub use crate::connect_options::*;
pub use crate::create_options::*;
pub use crate::disconnect_options::*;
pub use crate::errors::*;
pub use crate::message::*;
pub use crate::name_value::*;
pub use crate::properties::*;
pub use crate::reason_code::*;
pub use crate::response_options::*;
pub use crate::server_response::*;
pub use crate::ssl_options::*;
pub use crate::subscribe_options::*;
pub use crate::token::*;
pub use crate::topic::*;
pub use crate::types::*;
pub use crate::will_options::*;
Modules§
- async_
client - The asynchronous API The Asynchronous client module for the Paho MQTT Rust client library.
- client
- The synchronous API
This contains the synchronous
Client
interface for the Paho MQTT Rust library. - client_
persistence - Definitions for creating user-defined persistence.
- connect_
options - Options for connecting to the server. Connect options for the Paho MQTT Rust client library.
- create_
options - Client creation options
- disconnect_
options - Options for disconnecting from the server. Disconnect options for the Paho MQTT Rust client library. This contains the structures to define the options for disconnecting from the MQTT broker/server.
- errors
- The MQTT errors
- message
- The message object
- name_
value - Utility for creating name/value string pair collections (to pass to the C library).
- properties
- MQTT 5v properties. MQTT v5 properties.
- reason_
code - MQTT v5 Reason Codes The Reason Code module for the Paho MQTT Rust client library.
- response_
options - Options for responses coming back from the C lib. Response options for the Paho MQTT Rust client library.
- server_
response - Responses coming back from the server. The Token module for the Paho MQTT Rust client library.
- ssl_
options - Connect options for creating secure connections to the server.
- string_
collection - Utility for creating string collections (to pass to the C library).
- subscribe_
options - Options for subscribing to topics MQTT v5 subscribe options for the Paho MQTT Rust client library. These are defined in section 3.8.3.1 of the MQTT v5 spec. The defaults use the behavior that was present in MQTT v3.1.1.
- token
- Tokens to monitor asynchronous operations The Token module for the Paho MQTT Rust client library.
- topic
- Options for creating topic objects that are associated with a particular server. Objects for manipulating and checking message topics.
- topic_
matcher - Code to match MQTT topics to filters that may contain wildcards.
- types
- Miscelaneous types MQTT support types
- will_
options - Connect options for the Last Will and Testament (LWT) message. Last Will and Testament (LWT) options for the Paho MQTT Rust client library.
Macros§
- properties
- Creates a collection of properties
Structs§
- Async
Receiver - The receiving side of a channel.
- Receiver
- The receiving side of a channel.
Functions§
- from_
c_ bool - Converts a C integer boolean to a Rust bool
- to_
c_ bool - Convert a Rust bool to a Paho C boolean
Type Aliases§
- User
Data - Generic type for arbitrary user-supplied data.