Struct tokio::process::ChildStdin
source · [−]pub struct ChildStdin { /* private fields */ }
Expand description
The standard input stream for spawned children.
This type implements the AsyncWrite
trait to pass data to the stdin handle of
handle of a child process asynchronously.
Trait Implementations
sourceimpl AsRawFd for ChildStdin
impl AsRawFd for ChildStdin
sourceimpl AsyncWrite for ChildStdin
impl AsyncWrite for ChildStdin
sourcefn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
Attempt to write bytes from buf
into the object. Read more
sourcefn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempts to flush the object, ensuring that any buffered data reach their destination. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ChildStdin
impl Send for ChildStdin
impl Sync for ChildStdin
impl Unpin for ChildStdin
impl !UnwindSafe for ChildStdin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more