[][src]Struct checked_command::CheckedChild

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

Implementations

impl CheckedChild[src]

pub fn as_std_command(&mut self) -> &mut Child[src]

returns a mutable reference to the wrapped child

pub fn into_std_command(self) -> Child[src]

converts the checked child into a std::process::Child note that a Into<Child> implementation is not provided.

pub fn stdin(&mut self) -> &mut Option<ChildStdin>[src]

return a optional &mut to the childs Stding

pub fn stdout(&mut self) -> &mut Option<ChildStdout>[src]

return a optional &mut to the childs Stding

pub fn stderr(&mut self) -> &mut Option<ChildStderr>[src]

return a optional &mut to the childs Stding

pub fn kill(&mut self) -> Result<(), IoError>[src]

calls std::process::Child::kill

pub fn id(&self) -> u32[src]

calls std::process::Child::id

pub fn wait(&mut self) -> Result<(), Error>[src]

calls ChildExt::checked_wait on the wrapped Child

pub fn wait_with_output(self) -> Result<Output, Error>[src]

calls ChildExt::checked_wait_with_output on the wrapped Child

Trait Implementations

impl Debug for CheckedChild[src]

impl From<Child> for CheckedChild[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.