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§
Auto 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