Skip to main content

Module context

Module context 

Source
Expand description

Per-delivery and per-batch context fields exposed to handlers.

A handler types its context parameter as Context<'_, StreamContext>, or binds one field as a parameter with the core’s Ctx<K> extractor and a key from keys.

Modules§

keys
Compile-time Field keys, one per native field, read with ctx.context(key).

Structs§

PipelineContext
The per-delivery context of a .pipeline() subscription: the delivery’s round and the broker’s connection pool.
PoolContext
The per-delivery context that carries the broker’s connection pool and nothing else: what a handler taking Ctx<keys::FredPool> alone reads, on every form.
PubSubContext
Per-delivery context for a Redis Pub/Sub delivery (RedisPubSubMessage).
StreamBatchContext
Batch context for a batched Redis Streams subscription: what the whole subscription shares.
StreamContext
Per-delivery context for a Redis Streams delivery (RedisMessage).