Struct querent_synapse::querent::py_process::Process
source · pub struct Process<'a> { /* private fields */ }
Implementations§
source§impl<'a> Process<'a>
impl<'a> Process<'a>
pub fn new(py: Python<'a>) -> PyResult<Self>
pub fn is_running(&self) -> bool
pub fn spawn( &mut self, f: impl IntoPy<Py<PyAny>>, args: impl IntoPy<Py<PyTuple>>, kwargs: Option<&PyDict> ) -> PyResult<()>
pub fn spawn_mut( &mut self, f: impl IntoPy<Py<PyAny>>, args: impl IntoPy<Py<PyTuple>>, kwargs: Option<&PyDict> ) -> PyResult<(Py<PyAny>, Py<PyAny>)>
pub fn join(&mut self) -> PyResult<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Process<'a>
impl<'a> !RefUnwindSafe for Process<'a>
impl<'a> !Send for Process<'a>
impl<'a> !Sync for Process<'a>
impl<'a> Unpin for Process<'a>
impl<'a> !UnwindSafe for Process<'a>
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