Struct ChildStdout
pub struct ChildStdout { /* private fields */ }
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 into_owned_fd(self) -> Result<OwnedFd>Convert into
OwnedFd.
impl ChildStdout
fn from_std(inner: ChildStdout) -> 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.
Trait Implementations
impl AsFd for ChildStdout
fn as_fd(&self) -> BorrowedFd<'_>
impl AsRawFd for ChildStdout
fn as_raw_fd(&self) -> RawFd
impl AsyncRead for ChildStdout
fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>) -> Poll<Result<()>>
impl Debug for ChildStdout
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl TryInto<Stdio> for ChildStdout
type Error = Error;fn try_into(self) -> Result<Stdio, Self::Error>
Auto Trait Implementations
impl Freeze for ChildStdout
impl RefUnwindSafe for ChildStdout
impl Send for ChildStdout
impl Sync for ChildStdout
impl Unpin for ChildStdout
impl UnsafeUnpin for ChildStdout
impl UnwindSafe for ChildStdout
Blanket Implementations
impl<R> AsyncReadExt for ChildStdout
where
R: AsyncRead + ?Sized,
impl<T> Any for ChildStdout
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ChildStdout
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ChildStdout
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ChildStdout
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ChildStdout
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ChildStdout
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ChildStdout
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>