pub struct Child {
pub stdin: Option<PipeWriter>,
pub stdout: Option<PipeReader>,
pub stderr: Option<PipeReader>,
/* private fields */
}
Expand description
The reference to the running child
Fields§
§stdin: Option<PipeWriter>
Stdin of a child if it is a pipe
stdout: Option<PipeReader>
Stdout of a child if it is a pipe
stderr: Option<PipeReader>
Stderr of a child if it is a pipe
Implementations§
Source§impl Child
impl Child
Sourcepub fn wait(&mut self) -> Result<ExitStatus, Error>
pub fn wait(&mut self) -> Result<ExitStatus, Error>
Synchronously wait for child to complete and return exit status
Sourcepub fn signal(&self, signal: Signal) -> Result<(), Error>
pub fn signal(&self, signal: Signal) -> Result<(), Error>
Send arbitrary unix signal to the process
Sourcepub fn take_pipe_reader(&mut self, fd: RawFd) -> Option<PipeReader>
pub fn take_pipe_reader(&mut self, fd: RawFd) -> Option<PipeReader>
Returns pipe reader for a pipe declared with file_descriptor()
Returns None for wrong configuration or when called twice for same descriptor
Sourcepub fn take_pipe_writer(&mut self, fd: RawFd) -> Option<PipeWriter>
pub fn take_pipe_writer(&mut self, fd: RawFd) -> Option<PipeWriter>
Returns pipe writer for a pipe declared with file_descriptor()
Returns None for wrong configuration or when called twice for same descriptor
Trait Implementations§
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