Crate nats_handling

Source
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§

error
handle
messages

Structs§

ConnectOptions
Connect options. Used to connect with NATS when custom config is needed.
Handle
A structure that handles specified NATS subject and responds to messages
HeaderMap
A struct for handling NATS headers. Has a similar API to http::header, but properly serializes and deserializes according to NATS requirements.
HeaderName
Defines a NATS header field name
HeaderValue
Represents NATS header field value.
MultipleHandle
A structure that handles multiple NATS subject and responds to messages
NatsClient
A structure that represents a connection to a NATS server
Request
Used for building customized requests.