Skip to main content

Module jobs

Module jobs 

Source
Expand description

Async job execution contract

Host-managed background jobs that plugins can spawn and monitor. The plugin never owns the thread — it requests work from the host, receives progress events, and may cancel jobs it owns.

This preserves Doctrine 4 (trait firewall): plugins cannot spawn raw threads, open arbitrary processes, or block the TUI render loop.

Structs§

JobCancelledData
JobCompletedData
JobFailedData
JobLogLineData
JobOutputChunkData
JobProgressData
JobSpawnRequest
What the plugin wants the host to run.
JobStartedData

Enums§

JobEvent
Events the host emits about a job’s lifecycle.
JobStatus
Lightweight status snapshot for UI lists.

Traits§

JobHost
Host-side trait for job orchestration.

Type Aliases§

JobId
Opaque job identifier. Plugins treat this as an opaque string.