pub struct Child {
pub stdin: Option<WritePipe>,
pub stdout: Option<ReadPipe>,
pub stderr: Option<ReadPipe>,
/* private fields */
}
Expand description
A spawned child process, similar to std::process::Child
.
Fields§
§stdin: Option<WritePipe>
The standard input pipe of the process.
stdout: Option<ReadPipe>
The standard output pipe of the process.
stderr: Option<ReadPipe>
The standard error pipe of the process.
Implementations§
Source§impl Child
impl Child
Sourcepub async fn wait(&mut self) -> Result<ExitStatus, RecvError>
pub async fn wait(&mut self) -> Result<ExitStatus, RecvError>
Waits for the child to exit, returning the exit status.
Sourcepub async fn wait_with_output(self) -> Result<Output>
pub async fn wait_with_output(self) -> Result<Output>
Waits for the child to exit, returning the exit status and the remaining data from standard output and standard error.
Auto Trait Implementations§
impl Freeze for Child
impl !RefUnwindSafe for Child
impl Send for Child
impl Sync for Child
impl Unpin for Child
impl !UnwindSafe for Child
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