Structs§
- Client
- Client is a
Cloneablehandle to NATS connection. Client should not be created directly. Instead, one of two methods can be used: crate::connect and crate::ConnectOptions::connect - Publisher
Sink<Bytes>created byClient::publish_sink,Client::publish_with_reply_sink,Client::publish_with_headers_sinkorClient::publish_with_reply_and_headers_sink- Reconnect
Error - Request
- Used for building customized requests.
- Subscribe
Error
Enums§
Type Aliases§
- Flush
Error - Publish
Error - An error returned from the
Client::publish,Client::publish_with_headers,Client::publish_with_replyorClient::publish_with_reply_and_headersfunctions. This error is also used asPublisher::Error - Request
Error - Error returned when a core NATS request fails. To be enumerate over the variants, call RequestError::kind.