Module async_nats::client
source · Structs§
- Client is a
Cloneable
handle to NATS connection. Client should not be created directly. Instead, one of two methods can be used: crate::connect and crate::ConnectOptions::connect - Used for building customized requests.
Enums§
Type Aliases§
- An error returned from the
Client::publish
,Client::publish_with_headers
,Client::publish_with_reply
orClient::publish_with_reply_and_headers
functions. - Error returned when a core NATS request fails. To be enumerate over the variants, call RequestError::kind.