Skip to main content

jetstream_context_for_domain

Function jetstream_context_for_domain 

Source
pub fn jetstream_context_for_domain(
    client: Client,
    domain: Option<&str>,
) -> Context
Expand description

Creates a JetStream context for an explicit optional domain.

The domain is trimmed, and a blank domain is treated as None.

ยงArguments

  • client - Connected NATS client; the context takes ownership of it.
  • domain - JetStream domain, or None for no domain.