Skip to content

RunningStack

Functions

  • detach - Leave the stack running while transferring direct-child collection.
  • shutdown - Stop the stack and collect its child processes.

firma_process_orchestrator::start::RunningStack::detach

Section titled “firma_process_orchestrator::start::RunningStack::detach”

Function

Leave the stack running while transferring direct-child collection.

The stack remains owned if the persistent collector rejects the handoff, allowing Drop to apply its fail-closed fallback rather than losing process capabilities.

Returns an error if collection ownership cannot be transferred.

fn detach(self: & mut Self) -> Result<(), OrchestratorError>

firma_process_orchestrator::start::RunningStack::shutdown

Section titled “firma_process_orchestrator::start::RunningStack::shutdown”

Function

Stop the stack and collect its child processes.

Returns [ShutdownError::TeardownUncertain] when process absence cannot be proven, or [ShutdownError::StateCleanup] when only durable state cleanup fails after every process is confirmed absent.

fn shutdown(self: & mut Self, timeout: Duration) -> Result<StopOutcome, ShutdownError>