In the implementation of RateLimiter, Gcra structure is used. It has a method test_and_update, but there no operations test/update. I will explain the use case: assume we want to implement such rate limiter that when server receives initial packet from the client, we test that this client is not exceeded the rate limit but we update the rate limiter (increase counter) only when we decided to handle the connection. Maybe it is possible to implement rate limiter differently (let me know) with the current API but I cannot come up with a solution.