Struct ChildStdin
pub struct ChildStdin { pub(in ::process) inner: FileDesc }
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.
Fields
inner: FileDesc
Trait Implementations
impl AsFd for ChildStdin
fn as_fd(&self) -> BorrowedFd<'_>
impl AsHandle for ChildStdin
fn as_handle(&self) -> BorrowedHandle<'_>
impl AsInner<FileDesc> for ChildStdin
fn as_inner(&self) -> &FileDesc
impl AsRawFd for ChildStdin
fn as_raw_fd(&self) -> RawFd
impl AsRawHandle for ChildStdin
fn as_raw_handle(&self) -> RawHandle
impl CopyWrite for ChildStdin
fn properties(&self) -> CopyParams
impl Debug for ChildStdin
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl From<OwnedFd> for ChildStdin
fn from(fd: OwnedFd) -> ChildStdin
impl From<OwnedHandle> for ChildStdin
fn from(handle: OwnedHandle) -> ChildStdin
impl FromInner<FileDesc> for ChildStdin
fn from_inner(pipe: FileDesc) -> ChildStdin
impl IntoInner<FileDesc> for ChildStdin
fn into_inner(self) -> FileDesc
impl IntoRawFd for ChildStdin
fn into_raw_fd(self) -> RawFd
impl IntoRawHandle for ChildStdin
fn into_raw_handle(self) -> RawHandle
impl Write for ChildStdin
fn write(&mut self, buf: &[u8]) -> Result<usize>fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>fn is_write_vectored(&self) -> boolfn flush(&mut self) -> Result<()>
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> SizeHint for ChildStdin
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ChildStdin
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 = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
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>