Expand description
Nats Handling is a library designed for seamless NATS message handling in Rust. It offers a straightforward API for subscribing to NATS subjects, processing messages, and sending replies. The goal of this library is to provide an experience similar to HTTP handling, but tailored for NATS.
Re-exports§
pub use error::Error;
pub use messages::Message;
pub use messages::MessageProcessor;
pub use messages::ReplyMessage;
Modules§
Structs§
- Connect
Options - Connect options. Used to connect with NATS when custom config is needed.
- Handle
- A structure that handles specified NATS subject and responds to messages
- Header
Map - A struct for handling NATS headers.
Has a similar API to
http::header
, but properly serializes and deserializes according to NATS requirements. - Header
Name - Defines a NATS header field name
- Header
Value - Represents NATS header field value.
- Multiple
Handle - A structure that handles multiple NATS subject and responds to messages
- Nats
Client - A structure that represents a connection to a NATS server
- Request
- Used for building customized requests.