pub struct AsyncStdChild { /* private fields */ }
Expand description
Async-std specific RuntimeChild
implementation.
Trait Implementations§
Source§impl RuntimeChild for AsyncStdChild
impl RuntimeChild for AsyncStdChild
Source§type Runtime = AsyncStdGlobalRuntime
type Runtime = AsyncStdGlobalRuntime
An async runtime.
Source§type Stdin<'a> = AsyncStdStdin<'a>
where
Self: 'a
type Stdin<'a> = AsyncStdStdin<'a> where Self: 'a
Represents a stdin implementation specific to runtime.
Source§type Stdout<'a> = AsyncStdStdout<'a>
where
Self: 'a
type Stdout<'a> = AsyncStdStdout<'a> where Self: 'a
Represents a stdout implementation specific to runtime.
Source§type Stderr<'a> = AsyncStdStderr<'a>
where
Self: 'a
type Stderr<'a> = AsyncStdStderr<'a> where Self: 'a
Represents a stderr implementation specific to runtime.
Source§fn kill(&mut self) -> Result<()>
fn kill(&mut self) -> Result<()>
Forces the child process to exit. If the child has already exited,
Ok(())
is returned.Source§fn output(self) -> impl Future<Output = Result<Output>> + Send
fn output(self) -> impl Future<Output = Result<Output>> + Send
Simultaneously waits for the child to exit and collect all remaining
output on the stdout/stderr handles, returning an
Output
instance.Source§fn status(&mut self) -> impl Future<Output = Result<ExitStatus>> + Send
fn status(&mut self) -> impl Future<Output = Result<ExitStatus>> + Send
Waits for the child to exit completely, returning the status that it
exited with. This function will continue to have the same return value
after it has been called at least once. Read more
Source§fn try_status(&mut self) -> Result<Option<ExitStatus>>
fn try_status(&mut self) -> Result<Option<ExitStatus>>
Attempts to collect the exit status of the child if it has already
exited. Read more
Auto Trait Implementations§
impl Freeze for AsyncStdChild
impl RefUnwindSafe for AsyncStdChild
impl Send for AsyncStdChild
impl Sync for AsyncStdChild
impl Unpin for AsyncStdChild
impl UnwindSafe for AsyncStdChild
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