Struct tokio::process::ChildStdout
source · pub struct ChildStdout { /* private fields */ }
Expand description
The standard output stream for spawned children.
This type implements the AsyncRead
trait to read data from the stdout
handle of a child process asynchronously.
Implementations§
source§impl ChildStdout
impl ChildStdout
sourcepub fn from_std(inner: ChildStdout) -> Result<Self>
pub fn from_std(inner: ChildStdout) -> Result<Self>
Creates an asynchronous ChildStderr
from a synchronous one.
Errors
This method may fail if an error is encountered when setting the pipe to non-blocking mode, or when registering the pipe with the runtime’s IO driver.