pub struct SpawnedProcess {
pub session: ProcessHandle,
pub output_rx: Receiver<Vec<u8>>,
pub exit_rx: Receiver<i32>,
}Expand description
Return value from spawn helpers (PTY or pipe).
Bundles the process handle with receivers for output and exit notification.
Fields§
§session: ProcessHandleHandle for interacting with the process.
output_rx: Receiver<Vec<u8>>Receiver for stdout/stderr output chunks.
exit_rx: Receiver<i32>Receiver for exit code (receives once when process exits).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SpawnedProcess
impl !RefUnwindSafe for SpawnedProcess
impl Send for SpawnedProcess
impl Sync for SpawnedProcess
impl Unpin for SpawnedProcess
impl !UnwindSafe for SpawnedProcess
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