pub trait PtyChild: Send + 'static {
// Required methods
fn pid(&self) -> u32;
fn try_wait(&mut self) -> Result<Option<u32>, Error>;
fn wait(&mut self) -> Result<u32, Error>;
fn kill(&mut self) -> Result<(), Error>;
// Provided methods
fn as_raw_handle(&self) -> Option<*mut c_void> { ... }
fn prepare_process(
&self,
context: PtySpawnContext,
nice: Option<i32>,
) -> Result<PtyProcessGuard, Error> { ... }
}Expand description
Re-exported PTY backend handles and size type. Platform-neutral handle for a child process running inside a PTY.
Required Methods§
fn pid(&self) -> u32
fn try_wait(&mut self) -> Result<Option<u32>, Error>
fn wait(&mut self) -> Result<u32, Error>
fn kill(&mut self) -> Result<(), Error>
Provided Methods§
Sourcefn as_raw_handle(&self) -> Option<*mut c_void>
👎Deprecated: use facade PTY operations; removal planned for 5.0
fn as_raw_handle(&self) -> Option<*mut c_void>
use facade PTY operations; removal planned for 5.0
Legacy Windows process-handle accessor retained for source compatibility.
Platform mechanics do not consume this value. The facade-owned process preparation operation keeps native handles inside the concrete tree.
Sourcefn prepare_process(
&self,
context: PtySpawnContext,
nice: Option<i32>,
) -> Result<PtyProcessGuard, Error>
fn prepare_process( &self, context: PtySpawnContext, nice: Option<i32>, ) -> Result<PtyProcessGuard, Error>
Apply selected-host containment and priority mechanics after spawn.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".