Expand description
Compile-time Field keys, one per native field, read with ctx.context(key).
Each key is a zero-sized selector implementing Field only for the context types that carry
its field, so applying a key to the wrong transport’s context is a compile error. A key that
also implements ContextField can be bound as a Ctx<K> handler
parameter; those read the per-delivery context, so a batch body reaches its own fields through
ctx.context(..) instead.
Structs§
- Channel
- Reads the concrete channel off a
PubSubContext. - Consumer
Group - Reads the consumer group off a stream context, per delivery or per batch.
- EntryId
- Reads the stream entry id this delivery was read at off a
StreamContext. - Fred
Pool - Reads the broker’s connection pool,
fred::clients::Pool, off the context of any subscription. - From
Pattern - Reads whether a
PubSubContextdelivery matched through aPSUBSCRIBEpattern. - Pipeline
- Reads the delivery’s round off the context of a
.pipeline()subscription: theRedisPipelineits handler queues commands into. - Position
- Reads the group cursor that redelivers this entry off a
StreamContext. - Seek
Handle - Reads the group’s reposition handle off a stream context, per delivery or per batch.