pub struct Child { /* private fields */ }
Implementations
sourceimpl Child
impl Child
pub fn kill(&mut self, sig: c_int) -> Result<(), KillError>
pub fn wait(&mut self) -> WaitResult
pub fn pid(&self) -> pid_t
sourcepub fn stdin(&mut self) -> Option<File>
pub fn stdin(&mut self) -> Option<File>
Take ownership of stdin of the process.
If the setup didn’t create a pipe for stdin or the pipe was already
sourcepub fn stdout(&mut self) -> Option<File>
pub fn stdout(&mut self) -> Option<File>
Take ownership of stdout of the process.
If the setup didn’t create a pipe for stdout or the pipe was already
sourcepub fn stderr(&mut self) -> Option<File>
pub fn stderr(&mut self) -> Option<File>
Take ownership of stderr of the process.
If the setup didn’t create a pipe for stderr or the pipe was already
sourcepub fn output(self) -> Result<Output, OutputError>
pub fn output(self) -> Result<Output, OutputError>
Close stdin of the child process, read its stdout and stderr (if possible) and wait for the child process to finish.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Child
impl Send for Child
impl Sync for Child
impl Unpin for Child
impl UnwindSafe for Child
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more