pub struct PyThreadPool(/* private fields */);Available on crate feature
python only.Implementations§
Source§impl PyThreadPool
impl PyThreadPool
pub fn new() -> Self
pub fn spawn_call<'a>( &self, py: Python<'a>, function: &Py<PyAny>, args: impl PyCallArgs<'a>, kwargs: Option<&Bound<'a, PyDict>>, ) -> PyResult<Py<PyAny>>
Trait Implementations§
Source§impl Default for PyThreadPool
impl Default for PyThreadPool
Source§impl<'py> IntoPyObject<'py> for PyThreadPool
impl<'py> IntoPyObject<'py> for PyThreadPool
Source§type Output = <Py<PyAny> as IntoPyObject<'py>>::Output
type Output = <Py<PyAny> as IntoPyObject<'py>>::Output
The smart pointer type to use. Read more
Source§type Error = <Py<PyAny> as IntoPyObject<'py>>::Error
type Error = <Py<PyAny> as IntoPyObject<'py>>::Error
The type returned in the event of a conversion error.
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
Performs the conversion.
Source§impl<'py> IntoPyObject<'py> for &'py PyThreadPool
impl<'py> IntoPyObject<'py> for &'py PyThreadPool
Source§type Output = <&'py Py<PyAny> as IntoPyObject<'py>>::Output
type Output = <&'py Py<PyAny> as IntoPyObject<'py>>::Output
The smart pointer type to use. Read more
Source§type Error = <&'py Py<PyAny> as IntoPyObject<'py>>::Error
type Error = <&'py Py<PyAny> as IntoPyObject<'py>>::Error
The type returned in the event of a conversion error.
Source§fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Performs the conversion.
Auto Trait Implementations§
impl !RefUnwindSafe for PyThreadPool
impl Freeze for PyThreadPool
impl Send for PyThreadPool
impl Sync for PyThreadPool
impl Unpin for PyThreadPool
impl UnsafeUnpin for PyThreadPool
impl UnwindSafe for PyThreadPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information and unbinding it
from the 'py lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
Converts
self into a Python object. Read more