Struct pyo3::GILPool[][src]

pub struct GILPool { /* fields omitted */ }
Expand description

A RAII pool which PyO3 uses to store owned Python references.

Implementations

Creates a new GILPool. This function should only ever be called with the GIL held.

It is recommended not to use this API directly, but instead to use Python::new_pool, as that guarantees the GIL is held.

Safety

As well as requiring the GIL, see the notes on Python::new_pool.

Get the Python token associated with this GILPool.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.