pub struct StdChild(pub Child);Available on crate feature
std only.Expand description
A thin wrapper around Child.
This is used only because implementing StdChildWrapper directly on std’s Child creates
loops in the type system. It is not intended to be used directly, but only to be used internally
by the library.
Tuple Fields§
§0: ChildTrait Implementations§
Source§impl StdChildWrapper for StdChild
impl StdChildWrapper for StdChild
Source§fn inner(&self) -> &Child
fn inner(&self) -> &Child
Available on crate feature
downcasting only.Obtain a reference to the underlying
Child.Source§fn inner_mut(&mut self) -> &mut Child
fn inner_mut(&mut self) -> &mut Child
Available on crate feature
downcasting only.Obtain a mutable reference to the underlying
Child.Source§fn into_inner(self: Box<Self>) -> Child
fn into_inner(self: Box<Self>) -> Child
Available on crate feature
downcasting only.Consume the wrapper and return the underlying
Child. Read moreSource§fn try_clone(&self) -> Option<Box<dyn StdChildWrapper>>
fn try_clone(&self) -> Option<Box<dyn StdChildWrapper>>
Available on crate feature
downcasting only.Obtain a clone if possible. Read more
Source§fn stdin(&mut self) -> &mut Option<ChildStdin>
fn stdin(&mut self) -> &mut Option<ChildStdin>
Available on crate feature
downcasting only.Obtain the
Child’s stdin. Read moreSource§fn stdout(&mut self) -> &mut Option<ChildStdout>
fn stdout(&mut self) -> &mut Option<ChildStdout>
Available on crate feature
downcasting only.Obtain the
Child’s stdout. Read moreSource§fn stderr(&mut self) -> &mut Option<ChildStderr>
fn stderr(&mut self) -> &mut Option<ChildStderr>
Available on crate feature
downcasting only.Obtain the
Child’s stderr. Read moreSource§fn id(&self) -> u32
fn id(&self) -> u32
Available on crate feature
downcasting only.Obtain the
Child’s process ID. Read moreSource§fn kill(&mut self) -> Result<()>
fn kill(&mut self) -> Result<()>
Available on crate feature
downcasting only.Kill the
Child and wait for it to exit. Read moreSource§fn start_kill(&mut self) -> Result<()>
fn start_kill(&mut self) -> Result<()>
Available on crate feature
downcasting only.Kill the
Child without waiting for it to exit. Read moreSource§fn try_wait(&mut self) -> Result<Option<ExitStatus>>
fn try_wait(&mut self) -> Result<Option<ExitStatus>>
Available on crate feature
downcasting only.Check if the
Child has exited without blocking, and if so, return its exit status. Read moreSource§fn wait(&mut self) -> Result<ExitStatus>
fn wait(&mut self) -> Result<ExitStatus>
Available on crate feature
downcasting only.Wait for the
Child to exit and return its exit status. Read moreAuto Trait Implementations§
impl Freeze for StdChild
impl RefUnwindSafe for StdChild
impl Send for StdChild
impl Sync for StdChild
impl Unpin for StdChild
impl UnwindSafe for StdChild
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