pub struct SpawnedProcess {
pub output: UnboundedReceiver<Vec<u8>>,
pub control: Box<dyn ProcessControl>,
}Expand description
A started process: stdout and stderr interleaved in arrival order, plus its control.
Fields§
§output: UnboundedReceiver<Vec<u8>>Output chunks; closed when both pipes reached end of file or output was closed.
control: Box<dyn ProcessControl>Kill / wait handle.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnedProcess
impl !Sync for SpawnedProcess
impl !UnwindSafe for SpawnedProcess
impl Freeze for SpawnedProcess
impl Send 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