Module client

Source

Structs§

Client
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
Publisher
Sink<Bytes> created by Client::publish_sink, Client::publish_with_reply_sink, Client::publish_with_headers_sink or Client::publish_with_reply_and_headers_sink
ReconnectError
Request
Used for building customized requests.
SubscribeError

Enums§

FlushErrorKind
PublishErrorKind
RequestErrorKind

Type Aliases§

FlushError
PublishError
An error returned from the Client::publish, Client::publish_with_headers, Client::publish_with_reply or Client::publish_with_reply_and_headers functions. This error is also used as Publisher::Error
RequestError
Error returned when a core NATS request fails. To be enumerate over the variants, call RequestError::kind.