pub struct ProcessPool { /* private fields */ }Implementations§
Source§impl ProcessPool
impl ProcessPool
pub fn new(config: PoolConfig) -> Self
pub async fn exec( &self, request: ExecRequest, ) -> Result<ExecResponse, ExecError>
pub async fn poll_output( &self, request: PollRequest<'_>, ) -> Result<ExecResponse, ExecError>
pub async fn write_stdin( &self, request: StdinRequest<'_>, ) -> Result<ExecResponse, ExecError>
pub async fn kill(&self, process_id: &str) -> Result<(), ExecError>
pub async fn terminate_all(&self)
Trait Implementations§
Source§impl Clone for ProcessPool
impl Clone for ProcessPool
Source§fn clone(&self) -> ProcessPool
fn clone(&self) -> ProcessPool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProcessPool
impl !UnwindSafe for ProcessPool
impl Freeze for ProcessPool
impl Send for ProcessPool
impl Sync for ProcessPool
impl Unpin for ProcessPool
impl UnsafeUnpin for ProcessPool
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