pub struct CheckedChild { /* private fields */ }Expand description
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§
Source§impl CheckedChild
impl CheckedChild
Sourcepub fn as_std_command(&mut self) -> &mut Child
pub fn as_std_command(&mut self) -> &mut Child
returns a mutable reference to the wrapped child
Sourcepub fn into_std_command(self) -> Child
pub fn into_std_command(self) -> Child
converts the checked child into a std::process::Child
note that a Into<Child> implementation is not provided.
Sourcepub fn stdin(&mut self) -> &mut Option<ChildStdin>
pub fn stdin(&mut self) -> &mut Option<ChildStdin>
return a optional &mut to the childs Stding
Sourcepub fn stdout(&mut self) -> &mut Option<ChildStdout>
pub fn stdout(&mut self) -> &mut Option<ChildStdout>
return a optional &mut to the childs Stding
Sourcepub fn stderr(&mut self) -> &mut Option<ChildStderr>
pub fn stderr(&mut self) -> &mut Option<ChildStderr>
return a optional &mut to the childs Stding
Sourcepub fn wait_with_output(self) -> Result<Output, Error>
pub fn wait_with_output(self) -> Result<Output, Error>
calls ChildExt::checked_wait_with_output on the wrapped Child
Trait Implementations§
Source§impl Debug for CheckedChild
impl Debug for CheckedChild
Source§impl From<Child> for CheckedChild
impl From<Child> for CheckedChild
Source§fn from(child: Child) -> CheckedChild
fn from(child: Child) -> CheckedChild
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CheckedChild
impl RefUnwindSafe for CheckedChild
impl Send for CheckedChild
impl Sync for CheckedChild
impl Unpin for CheckedChild
impl UnwindSafe for CheckedChild
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