Struct ChildStdout
struct ChildStdout { ... }
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
impl ChildStdout
fn from_std(inner: std::process::ChildStdout) -> io::Result<Self>Creates an asynchronous
ChildStdoutfrom 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.
impl super::ChildStdout
fn into_owned_fd(self: Self) -> io::Result<OwnedFd>Convert into
OwnedFd.
impl AsFd for super::ChildStdout
fn as_fd(self: &Self) -> BorrowedFd<'_>
impl AsRawFd for super::ChildStdout
fn as_raw_fd(self: &Self) -> RawFd
impl AsyncRead for ChildStdout
fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>) -> Poll<io::Result<()>>
impl Debug for ChildStdout
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Freeze for ChildStdout
impl RefUnwindSafe for ChildStdout
impl Send for ChildStdout
impl Sync for ChildStdout
impl TryInto for ChildStdout
fn try_into(self: Self) -> Result<Stdio, <Self as >::Error>
impl Unpin for ChildStdout
impl UnwindSafe for ChildStdout
impl<R> AsyncReadExt for ChildStdout
impl<T> Any for ChildStdout
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ChildStdout
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ChildStdout
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for ChildStdout
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for ChildStdout
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ChildStdout
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ChildStdout
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>