Struct async_process::ChildStdin[][src]

pub struct ChildStdin(_);

A handle to a child process’s standard input (stdin).

When a ChildStdin is dropped, the underlying handle gets clossed. If the child process was previously blocked on input, it becomes unblocked after dropping.

Implementations

impl ChildStdin[src]

pub async fn into_stdio(self) -> Result<Stdio>[src]

Convert async_process::ChildStdin into std::process::Stdio.

You can use it to associate to the next process.

Examples

use async_process::Command;
use std::process::Stdio;

let mut ls_child = Command::new("ls").stdin(Stdio::piped()).spawn()?;
let stdio:Stdio = ls_child.stdin.take().unwrap().into_stdio().await?;

let mut echo_child = Command::new("echo").arg("./").stdout(stdio).spawn()?;

Trait Implementations

impl AsyncWrite for ChildStdin[src]

impl Debug for ChildStdin[src]

Auto Trait Implementations

Blanket Implementations

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

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?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.