pub struct TokioRunner;Expand description
Spawns real processes with tokio.
Trait Implementations§
Source§impl Clone for TokioRunner
impl Clone for TokioRunner
Source§impl CommandRunner for TokioRunner
impl CommandRunner for TokioRunner
Source§fn run<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cmd: &'life1 Cmd,
stdout: &'life2 mut (dyn Write + Send),
stderr: &'life3 mut (dyn Write + Send),
) -> Pin<Box<dyn Future<Output = Result<Exit, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn run<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
cmd: &'life1 Cmd,
stdout: &'life2 mut (dyn Write + Send),
stderr: &'life3 mut (dyn Write + Send),
) -> Pin<Box<dyn Future<Output = Result<Exit, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Runs
cmd to completion with stdin
from the null device, copying its output to stdout and stderr as it arrives.Source§fn output<'life0, 'life1, 'async_trait>(
&'life0 self,
cmd: &'life1 Cmd,
) -> Pin<Box<dyn Future<Output = Result<CmdOutput, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn output<'life0, 'life1, 'async_trait>(
&'life0 self,
cmd: &'life1 Cmd,
) -> Pin<Box<dyn Future<Output = Result<CmdOutput, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Runs
cmd to completion with stdin from the null device and captures its output.impl Copy for TokioRunner
Source§impl Debug for TokioRunner
impl Debug for TokioRunner
Auto Trait Implementations§
impl Forget for TokioRunner
impl Freeze for TokioRunner
impl Move for TokioRunner
impl RefUnwindSafe for TokioRunner
impl Send for TokioRunner
impl Sync for TokioRunner
impl Unpin for TokioRunner
impl UnsafeUnpin for TokioRunner
impl UnwindSafe for TokioRunner
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