Skip to main content

Module process

Module process 

Source
Expand description

Process spawning, containment, inspection, termination, and stdio.

Re-exports§

pub use crate::PlatformChild;
pub use crate::PlatformEmergencySignal;
pub use crate::PlatformLifecycle;
pub use crate::PlatformOutput;
pub use crate::PlatformStdin;
pub use crate::SpawnSpec;
pub use crate::StreamMode;

Structs§

CaptureCancellation
ConsoleWindowInfo
Metadata about one visible window observed by console-popup monitoring.
DaemonChild
Handle for a detached child that is not terminated when dropped.
DaemonStdio
Caller-supplied output bindings for a detached synchronous child.
ObserverBackend
ProcessSnapshot
A platform-owned identity record used when observing a process tree. The timestamp fields are opaque host-native creation-time components and must only be compared for equality.
SpawnStdio
Caller-supplied stdio bindings for a contained synchronous child.
SpawnedChild
Handle and optional parent pipe ends for a contained child.

Enums§

CaptureStream
Identifies one captured child output stream.
DaemonStdioSource
Output destination accepted by the detached-child path.
ObserverCategory
ObserverScope
ObserverSupport
StdioSource
Standard-stream source or destination for a contained child.
SyncEnvironment
Environment base selected by the shared caller for a synchronous spawn.
UnixSignalKind
Platform-neutral Unix signal selectors used by the compatibility facade.

Functions§

cancel_capture_reader
canonical_environment_pairs
capture_reader_done
compat_shell_command
configure_native_command
configure_sync_contained_command
configure_sync_daemon_command
configure_trampoline_command
enable_descendant_subreaper
Enable Linux’s process-wide orphan reparenting for launched-tree observation. Failure is intentionally best-effort: the observer can still track descendants whose immediate parents remain alive.
exit_code
kill_tree
monitor_console_windows
observer_backend
parent_has_console
prepare_capture_reader
process_snapshot
process_snapshot_for_pid
read_process_cmdline
read_process_file_handles
set_process_name
shell_command
soft_terminate_process_group
Request a graceful shutdown for a child-owned POSIX process group.
spawn_sync
spawn_sync_daemon
sync_child_native_handle
trampoline_exit_code
unix_mark_extra_fds_close_on_exec
Mark inherited descriptors close-on-exec without breaking std’s exec-error pipe.
unix_set_priority
unix_signal_process
unix_signal_process_group
unix_signal_raw