pub fn apply_cache_replay_entry(
cache: &mut Cache,
entry: &EventStoreEntry,
) -> Result<bool, CacheReplayError>Expand description
Applies one event-store entry to cache state when a replay rule exists.
Returns Ok(true) when the entry changed cache state and Ok(false) when the
payload is outside the current cache bootstrap replay surface, or when the entry’s
position target cannot be established (a position event’s target is absent, or a
fill’s instrument is missing so the position cannot open). The latter paths log a
warning so the report’s ignored count surfaces the divergence instead of claiming
a full apply.
§Errors
Returns CacheReplayError::Decode when a supported payload cannot be decoded and
CacheReplayError::Apply when the decoded payload cannot be applied to the cache.