Module async_nats::client
source · Structs
- 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 - Error returned when flushing the messages buffered on the client fails. To be enumerate over the variants, call FlushError::kind.
- An error returned from the
Client::publish,Client::publish_with_headers,Client::publish_with_replyorClient::publish_with_reply_and_headersfunctions. - Used for building customized requests.
- Error returned when a core NATS request fails. To be enumerate over the variants, call RequestError::kind.