pub trait ContainmentChild {
// Required methods
fn process_id(&self) -> Option<u32>;
fn try_wait(&mut self) -> Result<bool>;
}Expand description
Minimal owned-child contract used by ContainmentGuard.
Consumers can wrap an external child type without exposing PTY handles or
terminal data to sysprims. The adapter must retain exclusive reap ownership
from receipt consumption through guard finalization; process_id must name
that unreaped child for the adapter’s lifetime.
Required Methods§
fn process_id(&self) -> Option<u32>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".