Function read_init

Source
pub async fn read_init() -> Result<Init, InitError>
Expand description

Read the Init message sent by the orchestrator over stdin.

This should be called exactly once at startup, immediately after init_module() so that logs are correctly configured.

The function reads a single line from stdin, trims trailing newlines, and deserializes it into crate::ipc_types::Init.