pub trait SpawnedChildControl:
Send
+ Sync
+ UnwindSafe
+ RefUnwindSafe {
// Required methods
fn kill(&mut self) -> Result<(), Error>;
fn wait(&mut self) -> Result<i32, Error>;
fn try_wait(&mut self) -> Result<Option<i32>, Error>;
fn shutdown(&mut self);
}Expand description
Native control operations for a contained child.
This trait is exposed so facade crates can preserve the contained-child type identity. Constructing an implementation remains the responsibility of the platform substrate.
Required Methods§
fn kill(&mut self) -> Result<(), Error>
fn wait(&mut self) -> Result<i32, Error>
fn try_wait(&mut self) -> Result<Option<i32>, Error>
fn shutdown(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".