Expand description
Types and APIs for Python contextvars.Context objects.
On GIL-enabled Python 3.14 and newer, this module also provides safe bindings for watching changes to the current context.
Macros§
- watch_
callback - Creates a context watcher callback from a safe Rust function.
Structs§
- Bound
Context Watcher Guard - A Python-bound guard which keeps a context watcher registered.
- Context
Watcher Guard - An unbound guard which keeps a context watcher registered.
- PyContext
- Represents a Python
contextvars.Contextobject. - Watch
Callback - Callback type for context watchers.
Enums§
- Context
Event - An event passed to a context watcher.