Struct ChildStderr

pub struct ChildStderr { pub(in ::process) inner: FileDesc }

A handle to a child process's stderr.

This struct is used in the stderr field on Child.

When an instance of ChildStderr is dropped, the ChildStderr's underlying file handle will be closed.

Fields

inner: FileDesc

Trait Implementations

impl AsFd for ChildStderr

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

impl AsHandle for ChildStderr

fn as_handle(&self) -> BorrowedHandle<'_>

impl AsInner<FileDesc> for ChildStderr

fn as_inner(&self) -> &FileDesc

impl AsRawFd for ChildStderr

fn as_raw_fd(&self) -> RawFd

impl AsRawHandle for ChildStderr

fn as_raw_handle(&self) -> RawHandle

impl CopyRead for ChildStderr

fn properties(&self) -> CopyParams

impl Debug for ChildStderr

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

impl From<OwnedFd> for ChildStderr

fn from(fd: OwnedFd) -> ChildStderr

impl From<OwnedHandle> for ChildStderr

fn from(handle: OwnedHandle) -> ChildStderr

impl FromInner<FileDesc> for ChildStderr

fn from_inner(pipe: FileDesc) -> ChildStderr

impl IntoInner<FileDesc> for ChildStderr

fn into_inner(self) -> FileDesc

impl IntoRawFd for ChildStderr

fn into_raw_fd(self) -> RawFd

impl IntoRawHandle for ChildStderr

fn into_raw_handle(self) -> RawHandle

impl Read for ChildStderr

fn read(&mut self, buf: &mut [u8]) -> Result<usize>
fn read_buf(&mut self, buf: BorrowedCursor<'_, u8>) -> Result<()>
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
fn is_read_vectored(&self) -> bool
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>

impl SpecCopy for ChildStderr

fn copy<R: Read + ?Sized, W: Write + ?Sized>(read: &mut R, write: &mut W) -> Result<CopyState>

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> SpecReadByte for ChildStderr where R: Read,

fn spec_read_byte(&mut self) -> Option<Result<u8, Error>>

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> SizeHint for ChildStderr where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for ChildStderr

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 = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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>