Module publisher

Module publisher 

Source
Expand description

Typed publisher with Sink trait implementation.

The Publisher type provides a typed interface for publishing messages to NATS. It implements the Sink trait for convenient stream-based publishing.

Note: The Sink implementation uses fire-and-forget semantics for efficiency. For applications requiring acknowledgment of each message, use the Client::publish method directly or the JetStream JetStreamContext::publish for guaranteed delivery.

Structsยง

Publisher
A typed publisher that implements Sink.