Skip to main content

Module controller

Module controller 

Source
Expand description

ShellController struct + inner state definitions, constructor, and the small accessor / lock / meta helpers. The Controller trait impl and the spawn/IO orchestration live in super::lifecycle.

Structsยง

ShellController
ShellController manages one shell or command block.
ShellControllerInner ๐Ÿ”’

Constantsยง

KILL_GRACE_SECS ๐Ÿ”’
Inner state protected by mutex. Grace period (seconds) between SIGTERM and SIGKILL during stop().
SHELL_INPUT_CH_SIZE ๐Ÿ”’
Cap on the out-of-order input reorder buffer (input_seq_buf).

Type Aliasesยง

ConnFactory
Factory function type for creating ConnInterface instances. This allows dependency injection for testing.