fn find_nearest( index: &dyn TemporalIndexAccess, entity_id: u64, timestamp: i64, ) -> Result<u32, QueryError>