Skip to main content

Module process_model

Module process_model 

Source
Expand description

Process-isolation model and typed IPC for GPUI.

This module defines the shared contracts for the GPUI process model: process classes, IPC messages, supervision policies, and worker APIs. Platform-specific backends implement the actual transport and spawning.

Structs§

HealthCheckConfig
Health-check configuration for a supervised process.
HelperProcessExecutionPlan
Builder-facing execution plan for a checked helper process launch.
HelperProcessLaunch
A validated request to launch an app-owned helper process.
HelperProcessLaunchBuilder
Builder for checked app-owned helper process launches.
ProcessId
A stable identifier for a GPUI child process.
ProcessInfo
Metadata describing a running or requested child process.
ProcessInfoBuilder
Builder for checked child-process descriptors.
ProcessSpawnOptions
Spawn-time options for a supervised process.
ProcessSpawnOptionsBuilder
Builder for checked supervised-process spawn options.
TerminalSessionRequest
Checked descriptor for an app-owned terminal or shell session.
TerminalSessionRequestBuilder
Builder for checked terminal session requests.

Enums§

BootstrapMessage
Bootstrap message exchanged during worker initialization.
HelperProcessPlanAction
Next builder action for a checked helper process or plugin host launch.
HelperProcessProfile
Known helper-process profiles for common browser-runtime stack escape hatches.
IpcMessage
A typed IPC message exchanged between GPUI processes.
ProcessClass
The class of a GPUI child process, which determines its capabilities and expected lifetime.
ProcessEnvironmentPolicy
Environment inheritance policy for a helper process launch.
ProcessHealth
The current health status of a supervised process.
RestartPolicy
Policy controlling how the supervisor responds to child process failures.
SupervisorEvent
Lifecycle events emitted by a process supervisor.
WorkerError
An error returned by a worker.
WorkerProgress
A progress update sent from worker to host.
WorkerRequest
A request sent from host to worker.
WorkerResponse
A response sent from worker to host.

Constants§

WORKER_PROTOCOL_VERSION
Version shared by native process workers and browser Web Workers.

Traits§

Supervisor
Trait for a process supervisor that can launch, monitor, and restart child processes.
WorkerTask
A task that can be offloaded to a worker process.