pub struct ProcessHandle {
pub info: ProcessInfo,
pub child: Arc<Mutex<Option<Child>>>,
pub live_output: Arc<Mutex<String>>,
}Expand description
Internal handle to a registered process
Combines process metadata with runtime resources needed to manage the process lifecycle and capture output.
Fields§
§info: ProcessInfoProcess metadata and configuration
child: Arc<Mutex<Option<Child>>>Handle to the child process (if available)
This is wrapped in Arc
live_output: Arc<Mutex<String>>Buffer for capturing live process output
Stores stdout/stderr output as it’s generated, allowing clients to retrieve recent output at any time.
Auto Trait Implementations§
impl Freeze for ProcessHandle
impl RefUnwindSafe for ProcessHandle
impl Send for ProcessHandle
impl Sync for ProcessHandle
impl Unpin for ProcessHandle
impl UnsafeUnpin for ProcessHandle
impl UnwindSafe for ProcessHandle
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