pub const MAX_STORED_EVENTS: usize = 1024;Expand description
Maximum number of SnapshotBridgeEvent entries the bridge
retains between SnapshotBridge::drain_events calls. A scenario
that triggers many cap-eviction events (a Loop step that captures
a unique tag every 30ms for 10 minutes produces ~20 000 events,
each ~100 bytes) would otherwise grow the events log without
bound. The bridge enforces FIFO eviction at this cap — when push
would exceed it, the oldest event is dropped, the dropped count
is tracked on SnapshotStore::events_dropped, and the next
SnapshotBridge::drain_events call appends a synthetic
SnapshotBridgeEvent::EventLogTruncated entry at the tail so
the operator never silently loses events. The cap is loose enough
(1024 events × ~100 bytes ≈ 100 KiB) that legitimate scenarios
never hit it; only runaway capture frequency does.