Struct ChildStdin
struct ChildStdin { ... }
The standard input stream for spawned children.
This type implements the AsyncWrite trait to pass data to the stdin
handle of a child process asynchronously.
Implementations
impl ChildStdin
fn from_std(inner: std::process::ChildStdin) -> io::Result<Self>Creates an asynchronous
ChildStdinfrom 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.
impl super::ChildStdin
fn into_owned_fd(self: Self) -> io::Result<OwnedFd>Convert into
OwnedFd.
impl AsFd for super::ChildStdin
fn as_fd(self: &Self) -> BorrowedFd<'_>
impl AsRawFd for super::ChildStdin
fn as_raw_fd(self: &Self) -> RawFd
impl AsyncWrite for ChildStdin
fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<io::Result<usize>>fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>>fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>>fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[io::IoSlice<'_>]) -> Poll<Result<usize, io::Error>>fn is_write_vectored(self: &Self) -> bool
impl Debug for ChildStdin
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Freeze for ChildStdin
impl RefUnwindSafe for ChildStdin
impl Send for ChildStdin
impl Sync for ChildStdin
impl TryInto for ChildStdin
fn try_into(self: Self) -> Result<Stdio, <Self as >::Error>
impl Unpin for ChildStdin
impl UnwindSafe for ChildStdin
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) -> TReturns the argument unchanged.
impl<T, U> Into for ChildStdin
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>