Skip to main content

Module widget_process

Module widget_process 

Source
Expand description

Lifecycle ownership for declared widget sidecar processes.

Structs§

ManagedProcess 🔒
A running widget process and its input pipe.
WidgetProcessEvent
One line of output from a widget process.
WidgetProcessManager
Starts, feeds, and stops the processes widgets declare, and buffers their output.

Enums§

ProcessStream
The output stream a line came from.

Constants§

MAX_LINE_BYTES 🔒
Longest line read from or sent to a widget process, in bytes. Longer output lines are cut.

Functions§

canonical_child 🔒
Resolves relative inside root, rejecting paths that escape it or aren’t files.
spawn_reader 🔒
Reads a stream line by line on a background thread and sends each line as an event until the stream closes or the manager is dropped.
validate_arguments 🔒
Allows at most 32 arguments of up to 1 KB, each from the declaration’s allow list.