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
DrainError
ReconnectError
Request
Used for building customized requests.
Statistics
Represents statistics for the instance of the client throughout its lifecycle.
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.
RequestError
Error returned when a core NATS request fails. To be enumerate over the variants, call RequestError::kind.