pub struct Spawned<P: Process> {
pub process: P,
pub stdout: P::Stdout,
pub stderr: P::Stderr,
}Expand description
Triple of values produced by ProcessSpawner::spawn.
The owned-at-spawn shape: stdout and stderr are taken out of the
child once at spawn time and exposed as fields. Callers move them
into reader tasks while keeping Self::process for waiting and
signalling.
Fields§
§process: PHandle to the spawned child for waiting and signalling.
stdout: P::StdoutAsync byte stream of the child’s stdout.
stderr: P::StderrAsync byte stream of the child’s stderr.
Auto Trait Implementations§
impl<P> Freeze for Spawned<P>
impl<P> RefUnwindSafe for Spawned<P>where
P: RefUnwindSafe,
<P as Process>::Stdout: RefUnwindSafe,
<P as Process>::Stderr: RefUnwindSafe,
impl<P> Send for Spawned<P>where
P: Send,
impl<P> Sync for Spawned<P>
impl<P> Unpin for Spawned<P>where
P: Unpin,
impl<P> UnsafeUnpin for Spawned<P>
impl<P> UnwindSafe for Spawned<P>
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