SendChild

Trait SendChild 

Source
pub trait SendChild {
    type Stdin: AsyncWrite + Send + Unpin + 'static;
    type Stdout: AsyncRead + Send + Unpin + 'static;
    type Stderr: AsyncRead + Send + Unpin + 'static;

    // Required methods
    fn stdin(&mut self) -> Option<Self::Stdin>;
    fn stdout(&mut self) -> Option<Self::Stdout>;
    fn stderr(&mut self) -> Option<Self::Stderr>;
    fn try_status(&mut self) -> Result<Option<ExitStatus>>;
}
Available on crate feature client only.
Expand description

Send runtime trait for CGI child process.

Required Associated Types§

Source

type Stdin: AsyncWrite + Send + Unpin + 'static

Source

type Stdout: AsyncRead + Send + Unpin + 'static

Source

type Stderr: AsyncRead + Send + Unpin + 'static

Required Methods§

Source

fn stdin(&mut self) -> Option<Self::Stdin>

Obtains the standard input stream.

Source

fn stdout(&mut self) -> Option<Self::Stdout>

Obtains the standard output stream.

Source

fn stderr(&mut self) -> Option<Self::Stderr>

Obtains the standard error stream.

Source

fn try_status(&mut self) -> Result<Option<ExitStatus>>

Returns the exit status if the process has exited.

Implementors§