Struct StartupBackend

Struct Documentation

struct StartupBackend

Owned callbacks for one backend.

arguments registers options during Startup construction; validate runs after parsing; create constructs the context only after validation. create is required. Captured borrowed values must survive their callback’s invocation.

Public Members

OptionDefinitions arguments = {}

Optional option registrar called during Startup construction; captures/bound values must survive their uses.

std::function<void()> validate = {}

Optional post-parse validation before create; invalid_args/CLI parse validation becomes an error result.

std::function<std::unique_ptr<CE::Runtime::Context>(const CE::Runtime::ExecutionOptions&)> create = {}

Required context factory invoked after validation with selected execution options; returns non-null owned Context or propagates failure.