pub trait PyFuture: Send {
// Required method
fn poll_py(
self: Pin<&mut Self>,
py: Python<'_>,
cx: &mut Context<'_>,
) -> Poll<PyResult<PyObject>>;
}Expand description
GIL-bound Future.
Provided with a blanket implementation for Future. GIL is maintained during polling
operation. To release the GIL, see AllowThreads.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".