Skip to main content

Crate running_process_platform_internal

Crate running_process_platform_internal 

Source
Expand description

Blessed asynchronous process operations.

This crate is intentionally published as an implementation detail. It is the only production owner of the Tokio process primitives used by the async process API. Higher layers receive typed operations and never name tokio::process::Command directly.

Re-exports§

pub use platform_imp::terminal_input;

Modules§

platform
Neutral capability indexes for the eventual workspace-wide host boundary.

Structs§

CaptureCancellation
PlatformChild
Owned child handle returned by SpawnSpec::spawn.
PlatformEmergencySignal
Opaque, non-reap-capable emergency termination capability.
PlatformLifecycle
Opaque exit-wait capability owned by a process actor.
PlatformOutput
Opaque stdout or stderr reader owned by a process actor.
PlatformStdin
Opaque piped stdin capability owned by a process actor.
ProcessLiveness
A live reference to another process, good for as long as it is held.
SpawnSpec
Typed spawn description accepted by the blessed process boundary.
TracedChild
Root-process control handle whose wait state is owned by the tracer.
WindowsJobHandle

Enums§

HostPrivilegedIdentity
A privileged system identity this process may be running as.
StreamMode
Stdio policy for one child stream.

Constants§

EXECUTABLE_EXTENSION
File-name extension the host requires on a runnable image, if any.

Functions§

after_compat_tokio_spawn
Complete host-owned setup after a legacy Tokio child has been spawned.
assign_child_to_windows_job
autostart_register
autostart_render_registration
Render the unit text without touching the filesystem.
autostart_unregister
cancel_capture_reader
canonical_environment_pairs
capture_reader_done
compat_shell_command
configure_compat_tokio_command
Apply host-owned setup for the legacy Tokio-command compatibility surface.
configure_exact_trace
Arrange for a successful exec to stop the child before user code runs. No pre-exec SIGSTOP is used: that would deadlock Command::spawn’s exec error pipe.
configure_process_command
configure_sync_contained_command
configure_sync_daemon_command
configure_sync_daemon_command_with_inheritance
configure_trampoline_command
current_executable_build_id
Return the GNU build ID of the running executable without reading the executable from disk.
exact_trace_capability
executable_file_name
Spell bare the way this host names an executable file.
executable_sibling_of_current_image
Path to a sibling program installed beside the running image.
exit_code
fs_write_all_to_descriptor
Write every byte of bytes, or report why not.
host_boot_id
An identifier that changes on every boot of this machine.
host_current_process_privilege
The privileged identity this process is running as, if any.
host_environment_keys_are_case_insensitive
Unix environment variable names compare byte for byte.
host_filesystem_device_id
The filesystem device this path lives on.
host_hostname
This machine’s name as the host reports it.
host_login_environment
The logged-in user’s environment, as a fresh login would see it.
host_login_environment_block
The login environment in the double-NUL-terminated UTF-16 block form.
host_machine_id
A durable per-machine identifier that survives reboots.
host_namespace_id
The mount and PID namespaces this process is in.
host_user_machine_identity
A stable identity for this user on this machine.
kill_tree
monitor_console_windows
parent_has_console
prepare_capture_reader
process_can_replace_current_image
This host replaces a running image in place; see the facade for what that means for a caller that cannot accept a successor instead.
process_executable_path
Resolve the on-disk image a running process was started from.
process_force_kill
Stop a process without asking.
process_install_owner_death_cleanup
Ask the kernel to signal this process when its owner exits.
process_install_shutdown_request_handler
Ask this host to report shutdown requests.
process_owner_death_cleanup_target
What this host will attempt, without attempting it.
process_replace_current_image
Replace this process’s image with command.
process_same_executable_path
Whether two spellings name the same executable image on this host.
process_signal_terminate
Ask a process to stop.
process_snapshot
process_snapshot_for_pid
resources_fd_exhaustion_error
One error this host would report for descriptor exhaustion.
resources_inode_capacity
Probe inode capacity for the filesystem containing path.
resources_signals_fd_exhaustion
Whether this error means the process or the system is out of descriptors.
resources_signals_storage_exhaustion
Whether this error means the filesystem is out of space.
resources_storage_exhaustion_error
One error this host would report for storage exhaustion.
set_process_name
set_window_icon_impl
Write source onto this process’s terminal window.
shell_command
shell_spec
Build a shell command using the host platform’s supported shell.
soft_terminate_process_group
Request a graceful shutdown for a child-owned POSIX process group.
spawn_sync
spawn_sync_daemon
spawn_sync_daemon_with_inheritance
start_descendant_monitor
start_exact_trace
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
window_icon_support_impl
Whether this host can take a real icon.