Returns whether this rate limiter is blocked. The limiter 'blocks' when a `consume()` operation fails because there was not enough budget for it. An event will be generated on the exported FD when the limiter 'unblocks'.
(&self)
| 447 | /// budget for it. |
| 448 | /// An event will be generated on the exported FD when the limiter 'unblocks'. |
| 449 | pub fn is_blocked(&self) -> bool { |
| 450 | self.timer_active.load(Ordering::Relaxed) |
| 451 | } |
| 452 | |
| 453 | /// This function needs to be called every time there is an event on the |
| 454 | /// FD provided by this object's `AsRawFd` trait implementation. |
no outgoing calls
no test coverage detected