Skip to main content

open_run_with_options

Function open_run_with_options 

Source
pub fn open_run_with_options(
    config: &EventStoreConfig,
    instance_id: &str,
    run_id: RunId,
    parent_run_id: Option<RunId>,
    start_ts_init: UnixNanos,
    components: &RegisteredComponents,
    halt_signal: HaltSignal,
    clock: &'static AtomicTime,
    options: &EventStoreLifecycleOptions,
) -> Result<EventStoreSession, BootError>
Expand description

Opens a fresh run with process-local lifecycle options.

This follows open_run but obtains the backend and encoder registry from options.

ยงErrors

Returns BootError::EventStore when the backend rejects open, BootError::RunStartedSubmit when the writer rejects the submit, BootError::RunStartedTimeout when the commit does not happen inside the configured ceiling, and BootError::HaltedDuringBoot when the writer fail-stops while waiting for the commit.