pub struct SpawnedProcess {
pub session: ProcessHandle,
pub process_id: u32,
pub output_rx: Receiver<Bytes>,
pub reliable_output_rx: Receiver<Bytes>,
pub exit_rx: Receiver<i32>,
/* private fields */
}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.
process_id: u32Operating-system process identifier for the direct child.
output_rx: Receiver<Bytes>Receiver for stdout/stderr output chunks.
reliable_output_rx: Receiver<Bytes>Bounded, lossless receiver for consumers that must spool complete
output. Unlike output_rx, this channel applies backpressure to the
child-process readers instead of dropping lagged 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 !UnwindSafe for SpawnedProcess
impl Send for SpawnedProcess
impl Sync for SpawnedProcess
impl Unpin for SpawnedProcess
impl UnsafeUnpin 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