pub struct TokioProcess(/* private fields */);Available on crate feature
tokio-process only.Expand description
A Process implementation using the tokio crate for I/O.
Trait Implementations§
Source§impl Process for TokioProcess
impl Process for TokioProcess
type Stdin = Compat<ChildStdin>
fn spawn( program: &str, args: Vec<&str>, pipe_output: bool, ) -> Result<Self, Error>
fn output( program: &str, args: Vec<&str>, ) -> impl Future<Output = Result<Output, Error>> + Send
fn take_stdin(&mut self) -> Option<Self::Stdin>
fn wait_with_output(self) -> impl Future<Output = Result<Output, Error>> + Send
Auto Trait Implementations§
impl Freeze for TokioProcess
impl !RefUnwindSafe for TokioProcess
impl Send for TokioProcess
impl Sync for TokioProcess
impl Unpin for TokioProcess
impl !UnwindSafe for TokioProcess
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