pub struct ProcessManager { /* private fields */ }Expand description
Main process manager
Implementations§
Source§impl ProcessManager
impl ProcessManager
pub fn new() -> Self
pub fn with_config(max_concurrent: usize, default_timeout: Duration) -> Self
pub fn execute(&self, config: ProcessConfig) -> Result<ProcessResult>
pub fn execute_with_callback<F>( &self, config: ProcessConfig, callback: F, ) -> Result<ProcessResult>
pub async fn execute_async( &self, config: ProcessConfig, ) -> Result<ProcessResult>
pub async fn execute_parallel( &self, configs: Vec<ProcessConfig>, ) -> Result<Vec<ProcessResult>>
pub fn terminate_all(&self) -> Result<()>
pub fn set_resource_limits(&mut self, _limits: ResourceLimits)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessManager
impl RefUnwindSafe for ProcessManager
impl Send for ProcessManager
impl Sync for ProcessManager
impl Unpin for ProcessManager
impl UnwindSafe for ProcessManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more