pub trait ChildProcess: Send {
// Required methods
fn pid(&self) -> u32;
fn exited(&mut self) -> Result<bool, String>;
fn terminate<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn detach(&mut self);
}Required Methods§
fn pid(&self) -> u32
fn exited(&mut self) -> Result<bool, String>
fn terminate<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn detach(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".