Struct ChildStdin
pub struct ChildStdin { /* private fields */ }
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 into_owned_fd(self) -> Result<OwnedFd>Convert into
OwnedFd.
impl ChildStdin
fn from_std(inner: ChildStdin) -> 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.
Trait Implementations
impl AsFd for ChildStdin
fn as_fd(&self) -> BorrowedFd<'_>
impl AsRawFd for ChildStdin
fn as_raw_fd(&self) -> RawFd
impl AsyncWrite for ChildStdin
fn poll_write(self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>>fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>fn poll_shutdown(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>fn poll_write_vectored(self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>]) -> Poll<Result<usize, Error>>fn is_write_vectored(&self) -> bool
impl Debug for ChildStdin
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl TryInto<Stdio> for ChildStdin
type Error = Error;fn try_into(self) -> Result<Stdio, Self::Error>
Auto Trait Implementations
impl Freeze for ChildStdin
impl RefUnwindSafe for ChildStdin
impl Send for ChildStdin
impl Sync for ChildStdin
impl Unpin for ChildStdin
impl UnsafeUnpin for ChildStdin
impl UnwindSafe for ChildStdin
Blanket Implementations
impl<T> Any for ChildStdin
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ChildStdin
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ChildStdin
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ChildStdin
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ChildStdin
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 ChildStdin
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ChildStdin
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>