Skip to main content

Module engine

Module engine 

Source
Expand description

The composition root — the analogue of arcly-http’s App.

Engine replaces stream-center’s ApplicationRegistry::from_config. It is built by a plain-Rust EngineBuilder (no TOML, no StreamCenterConfig) and implements all three bus contracts (PublishRegistry, PlaybackRegistry, EventBus), so it drops straight into protocol code written against those traits.

Structs§

AppSpec
Plain-Rust application descriptor — a named namespace of streams with its own fan-out capacity and GOP-replay policy. Build one fluently and register it via EngineBuilder::application.
Engine
The engine. Many instances may coexist in one process (ideal for tests). Cheap to Arc-share.
EngineBuilder
Fluent builder for an Engine. Takes plain owned specs instead of a deserialized config schema, so consumers never adopt stream-center’s TOML.
EngineConfig
Engine-wide configuration — replaces sc-config::ServerConfig knobs the engine actually needs.