Struct ChildStdout
pub struct ChildStdout { pub(in ::process) inner: FileDesc }
A handle to a child process's standard output (stdout).
This struct is used in the stdout field on Child.
When an instance of ChildStdout is dropped, the ChildStdout's
underlying file handle will be closed.
Fields
inner: FileDesc
Trait Implementations
impl AsFd for ChildStdout
fn as_fd(&self) -> BorrowedFd<'_>
impl AsHandle for ChildStdout
fn as_handle(&self) -> BorrowedHandle<'_>
impl AsInner<FileDesc> for ChildStdout
fn as_inner(&self) -> &FileDesc
impl AsRawFd for ChildStdout
fn as_raw_fd(&self) -> RawFd
impl AsRawHandle for ChildStdout
fn as_raw_handle(&self) -> RawHandle
impl CopyRead for ChildStdout
fn properties(&self) -> CopyParams
impl Debug for ChildStdout
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl From<OwnedFd> for ChildStdout
fn from(fd: OwnedFd) -> ChildStdout
impl From<OwnedHandle> for ChildStdout
fn from(handle: OwnedHandle) -> ChildStdout
impl FromInner<FileDesc> for ChildStdout
fn from_inner(pipe: FileDesc) -> ChildStdout
impl IntoInner<FileDesc> for ChildStdout
fn into_inner(self) -> FileDesc
impl IntoRawFd for ChildStdout
fn into_raw_fd(self) -> RawFd
impl IntoRawHandle for ChildStdout
fn into_raw_handle(self) -> RawHandle
impl Read for ChildStdout
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) -> boolfn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>
impl SpecCopy for ChildStdout
fn copy<R: Read + ?Sized, W: Write + ?Sized>(read: &mut R, write: &mut W) -> Result<CopyState>
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> SpecReadByte for ChildStdout
where
R: Read,
fn spec_read_byte(&mut self) -> Option<Result<u8, Error>>
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> SizeHint for ChildStdout
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ChildStdout
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 = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
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>