Struct ChildStdin

struct ChildStdin { ... }

A handle to a child process's standard input (stdin).

This struct is used in the stdin field on Child.

When an instance of ChildStdin is dropped, the ChildStdin's underlying file handle will be closed. If the child process was blocked on input prior to being dropped, it will become unblocked after dropping.

Implementations

impl AsFd for crate::process::ChildStdin

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

impl AsHandle for crate::process::ChildStdin

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

impl AsRawFd for process::ChildStdin

fn as_raw_fd(self: &Self) -> RawFd

impl AsRawHandle for process::ChildStdin

fn as_raw_handle(self: &Self) -> RawHandle

impl Debug for ChildStdin

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

impl Freeze for ChildStdin

impl From for process::ChildStdin

fn from(fd: OwnedFd) -> process::ChildStdin

impl From for process::ChildStdin

fn from(handle: OwnedHandle) -> process::ChildStdin

impl IntoRawFd for process::ChildStdin

fn into_raw_fd(self: Self) -> RawFd

impl IntoRawHandle for process::ChildStdin

fn into_raw_handle(self: Self) -> RawHandle

impl RefUnwindSafe for ChildStdin

impl Send for ChildStdin

impl Sync for ChildStdin

impl Unpin for ChildStdin

impl UnwindSafe for ChildStdin

impl Write for ChildStdin

fn write(self: &mut Self, buf: &[u8]) -> io::Result<usize>
fn write_vectored(self: &mut Self, bufs: &[IoSlice<'_>]) -> io::Result<usize>
fn is_write_vectored(self: &Self) -> bool
fn flush(self: &mut Self) -> io::Result<()>

impl<T> Any for ChildStdin

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ChildStdin

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ChildStdin

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

impl<T> From for ChildStdin

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for ChildStdin

fn into(self: 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 for ChildStdin

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ChildStdin

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