Struct checked_command::CheckedChild
[−]
[src]
pub struct CheckedChild { /* fields omitted */ }
A wrapper around std::process::Child
which hides the original wait
/wait_with_output
methods
and replaces it with the versions from checked_command::ChildExt
Methods
impl CheckedChild
[src]
fn as_std_command(&mut self) -> &mut Child
returns a mutable reference to the wrapped child
fn into_std_command(self) -> Child
converts the checked child into a std::process::Child
note that a Into<Child>
implementation is not provided.
fn stdin(&mut self) -> &mut Option<ChildStdin>
return a optional &mut to the childs Stding
fn stdout(&mut self) -> &mut Option<ChildStdout>
return a optional &mut to the childs Stding
fn stderr(&mut self) -> &mut Option<ChildStderr>
return a optional &mut to the childs Stding
fn kill(&mut self) -> Result<(), IoError>
calls std::process::Child::kill
fn id(&self) -> u32
calls std::process::Child::id
fn wait(&mut self) -> Result<(), Error>
calls ChildExt::checked_wait
on the wrapped Child
fn wait_with_output(self) -> Result<Output, Error>
calls ChildExt::checked_wait_with_output
on the wrapped Child
Trait Implementations
impl Debug for CheckedChild
[src]
impl From<Child> for CheckedChild
[src]
fn from(child: Child) -> CheckedChild
Performs the conversion.