Crate pyo3_async

Source
Expand description

PyO3 bindings to various Python asynchronous frameworks.

Modules§

asyncio
asyncio compatible coroutine and async generator implementation.
sniffio
asyncio/trio compatible coroutine and async generator implementation, lazily specialized using sniffio.
trio
trio compatible coroutine and async generator implementation.

Structs§

AllowThreads
Wrapper for Future/Stream that releases GIL while polling in PyFuture/PyStream.

Traits§

AllowThreadsExt
Extension trait to allow threads while polling Future or Stream.
PyFuture
GIL-bound Future.
PyStream
GIL-bound Stream.

Type Aliases§

ThrowCallback
Callback for Python coroutine throw method (see asyncio::Coroutine::new) and async generator athrow method (see asyncio::AsyncGenerator::new).

Attribute Macros§

pyfunction
pyo3::pyfunction with async support.
pymethods
pyo3::pymethods with async support.