pub struct ProcessHandle { /* private fields */ }Expand description
Thin process lifecycle handle.
Implementations§
Source§impl ProcessHandle
impl ProcessHandle
Sourcepub async fn write_stdin(&self, data: &[u8]) -> Result<()>
pub async fn write_stdin(&self, data: &[u8]) -> Result<()>
Write bytes to the child’s stdin. Errors if stdin was not piped.
Sourcepub fn output_subscribe(&self) -> Receiver<OutputChunk>
pub fn output_subscribe(&self) -> Receiver<OutputChunk>
Subscribe to the raw output stream.
Sourcepub async fn wait_for_exit(&self)
pub async fn wait_for_exit(&self)
Wait until the process exits.
Sourcepub fn has_exited(&self) -> bool
pub fn has_exited(&self) -> bool
True if the child has exited.
Trait Implementations§
Source§impl Drop for ProcessHandle
impl Drop for ProcessHandle
Auto Trait Implementations§
impl !Freeze for ProcessHandle
impl RefUnwindSafe for ProcessHandle
impl Send for ProcessHandle
impl Sync for ProcessHandle
impl Unpin for ProcessHandle
impl UnsafeUnpin for ProcessHandle
impl UnwindSafe for ProcessHandle
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