Skip to main content

ContextWatcherCallbackDef

Trait ContextWatcherCallbackDef 

Source
pub trait ContextWatcherCallbackDef {
    const CALLBACK: ContextWatcherCallback;
}
Available on Py_3_14 and neither GraalPy nor Py_LIMITED_API nor PyPy nor RustPython and non-Py_GIL_DISABLED only.
Expand description

Associates a generated trampoline type with its Rust callback.

Required Associated Constants§

Source

const CALLBACK: ContextWatcherCallback

The Rust callback invoked by the generated C trampoline.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here