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.
ProcessId
A stable identifier for a GPUI child process.
ProcessInfo
Metadata describing a running or requested child process.
ProcessSpawnOptions
Spawn-time options for a supervised process.

Enums§

BootstrapMessage
Bootstrap message exchanged during worker initialization.
IpcMessage
A typed IPC message exchanged between GPUI processes.
ProcessClass
The class of a GPUI child process, which determines its capabilities and expected lifetime.
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.

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.