pub struct NativeProcessSpawner;Expand description
Native process spawner using tokio::process.
Trait Implementations§
Source§impl ProcessSpawner for NativeProcessSpawner
impl ProcessSpawner for NativeProcessSpawner
Source§fn run<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
command: &'life1 str,
args: &'life2 [&'life3 str],
working_dir: Option<&'life4 Path>,
timeout_secs: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<ProcessOutput, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn run<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
command: &'life1 str,
args: &'life2 [&'life3 str],
working_dir: Option<&'life4 Path>,
timeout_secs: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<ProcessOutput, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Run a command with arguments and capture its output. Read more
Auto Trait Implementations§
impl Freeze for NativeProcessSpawner
impl RefUnwindSafe for NativeProcessSpawner
impl Send for NativeProcessSpawner
impl Sync for NativeProcessSpawner
impl Unpin for NativeProcessSpawner
impl UnsafeUnpin for NativeProcessSpawner
impl UnwindSafe for NativeProcessSpawner
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