Skip to main content

Module keys

Module keys 

Source
Expand description

Compile-time Field keys, one per native JetStream metadatum.

Each key is a zero-sized selector exported both as a type (for naming in bounds) and as a const value (for use at the call site, ctx.context(keys::STREAM_SEQUENCE)). Every key reads None on a core delivery or when the JetStream reply subject could not be parsed.

Structs§

Consumer
Selector for the consumer name; see CONSUMER.
ConsumerSequence
Selector for the consumer sequence number; see CONSUMER_SEQUENCE.
Delivered
Selector for the server-side delivery count; see DELIVERED.
Pending
Selector for the pending count; see PENDING.
Stream
Selector for the stream name; see STREAM.
StreamSequence
Selector for the stream sequence number; see STREAM_SEQUENCE.

Constants§

CONSUMER
The name of the durable (or ephemeral) consumer this message was delivered through.
CONSUMER_SEQUENCE
The sequence the message holds within this consumer’s delivery stream.
DELIVERED
The number of times the server has delivered this message.
PENDING
The number of messages the server still has pending for this consumer behind this one.
STREAM
The name of the stream this message was delivered from.
STREAM_SEQUENCE
The monotonically increasing sequence the message holds within its stream.