Available on neither
GraalPy nor Py_LIMITED_API nor PyPy nor RustPython.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.
Re-exports§
pub use crate::watch_callback;Py_3_14and non-Py_GIL_DISABLED
Modules§
- impl_ 👻
Py_3_14and non-Py_GIL_DISABLED - Implementation details used by
watch_callback!.
Structs§
- Bound
Context Watcher Guard Py_3_14and non-Py_GIL_DISABLED - A Python-bound guard which keeps a context watcher registered.
- Context
Watcher Guard Py_3_14and non-Py_GIL_DISABLED - An unbound guard which keeps a context watcher registered.
- PyContext
- Represents a Python
contextvars.Contextobject. - Watch
Callback Py_3_14and non-Py_GIL_DISABLED - Callback type for context watchers.
Enums§
- Context
Event Py_3_14and non-Py_GIL_DISABLED - An event passed to a context watcher.
Functions§
- clear_
watcher 🔒Py_3_14and non-Py_GIL_DISABLED - clear_
watcher_ 🔒on_ drop Py_3_14and non-Py_GIL_DISABLED