Skip to main content

Module process

Module process 

Source
Expand description

Unified process handle types for PTY and pipe backends.

This module provides abstractions for interacting with spawned processes regardless of whether they use a PTY or regular pipes.

Inspired by codex-rs/utils/pty process handle patterns.

Structs§

ProcessHandle
Handle for driving an interactive or non-interactive process.
PtyHandles
Optional PTY-specific handles that must be preserved.
SpawnedProcess
Return value from spawn helpers (PTY or pipe).

Traits§

ChildTerminator
Trait for process termination strategies.

Functions§

collect_output_until_exit
Collect output from a process until it exits or times out.

Type Aliases§

ExecCommandSession
Backwards-compatible alias for ProcessHandle.
SpawnedPty
Backwards-compatible alias for SpawnedProcess.