Skip to main content

PtyChild

Trait PtyChild 

Source
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§

Source

fn pid(&self) -> u32

Source

fn try_wait(&mut self) -> Result<Option<u32>, Error>

Source

fn wait(&mut self) -> Result<u32, Error>

Source

fn kill(&mut self) -> Result<(), Error>

Provided Methods§

Source

fn as_raw_handle(&self) -> Option<*mut c_void>

👎Deprecated:

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.

Source

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".

Implementors§