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ยง
use crate::PyAny;๐use crate::ffi;๐use crate::Borrowed;๐Py_3_14and non-Py_GIL_DISABLEDuse crate::PyResult;๐Py_3_14and non-Py_GIL_DISABLEDuse crate::Python;๐Py_3_14and non-Py_GIL_DISABLEDuse crate::err;๐Py_3_14and non-Py_GIL_DISABLEDuse core::ffi::c_int;๐Py_3_14and non-Py_GIL_DISABLEDpub 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