Expand description
The Engine struct + test-only constructor + registration
accessors. Hot-path poll cycle lives in engine::poll.
Structs§
- Budget
Exceeded Reason - Failure case returned by
Engine::try_chargewhen admittingbyte_countmore bytes againstingress_byte_budgetwould exceed the cap.budget_remainingis the cap minus the liveingress_bytes_in_flightat the time of the rejection — the caller embeds both into the resultingWireReceiveErrororAppIngressErrorso subscribers see the magnitude of the rejection without re-querying the engine. - Engine
- Single-Node engine state. Built via
Node::ensure_ready; tests useEngine::new()and seed fields directly. - Engine
Stats - Point-in-time hot-path counters for dashboards + saturation detection. Not synchronized against an in-flight poll cycle.