Struct ChildStderr

pub struct ChildStderr { /* private fields */ }

The standard error stream for spawned children.

This type implements the AsyncRead trait to read data from the stderr handle of a child process asynchronously.

Implementations

impl ChildStderr

fn into_owned_fd(self) -> Result<OwnedFd>

Convert into OwnedFd.

impl ChildStderr

fn from_std(inner: ChildStderr) -> 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.

Trait Implementations

impl AsFd for ChildStderr

fn as_fd(&self) -> BorrowedFd<'_>

impl AsRawFd for ChildStderr

fn as_raw_fd(&self) -> RawFd

impl AsyncRead for ChildStderr

fn poll_read(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_>) -> Poll<Result<()>>

impl Debug for ChildStderr

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl TryInto<Stdio> for ChildStderr

type Error = Error;
fn try_into(self) -> Result<Stdio, Self::Error>

Auto Trait Implementations

impl Freeze for ChildStderr

impl RefUnwindSafe for ChildStderr

impl Send for ChildStderr

impl Sync for ChildStderr

impl Unpin for ChildStderr

impl UnsafeUnpin for ChildStderr

impl UnwindSafe for ChildStderr

Blanket Implementations

impl<R> AsyncReadExt for ChildStderr where R: AsyncRead + ?Sized,

impl<T> Any for ChildStderr where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ChildStderr where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ChildStderr where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for ChildStderr

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for ChildStderr where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ChildStderr where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ChildStderr where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>