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 ChildStdout
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.
Trait Implementations§
source§impl AsFd for ChildStdout
impl AsFd for ChildStdout
source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more