pub struct TokioProcessRunner;Expand description
The production runner.
Trait Implementations§
Source§impl ProcessRunner for TokioProcessRunner
impl ProcessRunner for TokioProcessRunner
Source§fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
program: &'life1 OsStr,
args: &'life2 [OsString],
stdin: Option<Vec<u8>>,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = ProcessOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
program: &'life1 OsStr,
args: &'life2 [OsString],
stdin: Option<Vec<u8>>,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = ProcessOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Run
program args… with stdin bytes (if any) written then closed,
killing the child after timeout.Auto Trait Implementations§
impl Forget for TokioProcessRunner
impl Freeze for TokioProcessRunner
impl Move for TokioProcessRunner
impl RefUnwindSafe for TokioProcessRunner
impl Send for TokioProcessRunner
impl Sync for TokioProcessRunner
impl Unpin for TokioProcessRunner
impl UnsafeUnpin for TokioProcessRunner
impl UnwindSafe for TokioProcessRunner
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