pub struct SpawnProcess { /* private fields */ }Implementations§
Source§impl SpawnProcess
impl SpawnProcess
pub fn spawn(program: &str, args: &[&str]) -> Result<(Self, StopHandler), Error>
pub fn pid(&self) -> u32
pub async fn work_done(&mut self)
Sourcepub async fn close_signal(&mut self) -> Result<(), Error>
pub async fn close_signal(&mut self) -> Result<(), Error>
Spawn new thread to monitor output in real-time
pub async fn wait(&mut self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpawnProcess
impl !RefUnwindSafe for SpawnProcess
impl Send for SpawnProcess
impl Sync for SpawnProcess
impl Unpin for SpawnProcess
impl !UnwindSafe for SpawnProcess
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