Module context
Expand description
Execution-scoped context propagation.
The context
module provides mechanisms for propagating values across API boundaries and between
logically associated execution units. It enables cross-cutting concerns to access their data in-process
using a shared context object.
§Main Types
Context
: An immutable, execution-scoped collection of values.
Structs§
- Context
- An execution-scoped collection of values.
- Context
Guard - A guard that resets the current context to the prior context when dropped.
- With
Context - A future, stream, or sink that has an associated context.
Traits§
- Future
Ext - Extension trait allowing futures, streams, and sinks to be traced with a span.