pub struct ProcessHandle { /* private fields */ }Implementations§
Source§impl ProcessHandle
impl ProcessHandle
pub fn new_from_child_with_piped_io( name: impl Into<Cow<'static, str>>, child: Child, ) -> Self
pub fn new_from_child_with_piped_io_and_capacity( name: impl Into<Cow<'static, str>>, child: Child, stdout_channel_capacity: usize, stderr_channel_capacity: usize, ) -> Self
pub fn id(&self) -> Option<u32>
pub fn is_running(&mut self) -> IsRunning
pub fn stdout(&self) -> &OutputStream
pub fn stderr(&self) -> &OutputStream
pub async fn wait(&mut self) -> Result<ExitStatus>
pub async fn wait_with_output( &mut self, ) -> Result<(ExitStatus, Vec<String>, Vec<String>), WaitError>
pub fn terminate_on_drop( self, graceful_termination_timeout: Option<Duration>, forceful_termination_timeout: Option<Duration>, ) -> TerminateOnDrop
pub async fn terminate( &mut self, graceful_shutdown_timeout: Option<Duration>, forceful_shutdown_timeout: Option<Duration>, ) -> Result<ExitStatus, TerminationError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessHandle
impl !RefUnwindSafe for ProcessHandle
impl Send for ProcessHandle
impl Sync for ProcessHandle
impl Unpin 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