pub struct Process { /* private fields */ }Expand description
An async child process
Implementations§
Source§impl Process
impl Process
Sourcepub fn try_recv(&mut self) -> Result<ProcessEvent, TryRecvError>
pub fn try_recv(&mut self) -> Result<ProcessEvent, TryRecvError>
Try to receive an event from the child. This should be called after mio’s Poll returns an event for this token
Trait Implementations§
Source§impl Evented for Process
impl Evented for Process
Source§fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
ops: PollOpt,
) -> Result<()>
fn register( &self, poll: &Poll, token: Token, interest: Ready, ops: PollOpt, ) -> Result<()>
Register the child process with the poll so it can notify when the child process updates
Source§impl Write for Process
impl Write for Process
Source§fn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer to the Stdin stream of this child process.
If the child is not created with .stdin(Stdio::piped()),
This function will return an error ErrorKind::NotConnected.
Source§fn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flushed the Stdin stream of this child process.
If the child is not created with .stdin(Stdio::piped()),
This function will return an error ErrorKind::NotConnected.
Source§fn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector)1.0.0 · Source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
Source§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
write_all_vectored)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations§
impl !Freeze for Process
impl !RefUnwindSafe for Process
impl Send for Process
impl !Sync for Process
impl Unpin for Process
impl !UnwindSafe for Process
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more