Returns the capacity of the token bucket.
(&self)
| 225 | |
| 226 | /// Returns the capacity of the token bucket. |
| 227 | pub fn capacity(&self) -> u64 { |
| 228 | self.size |
| 229 | } |
| 230 | |
| 231 | /// Returns the remaining one time burst budget. |
| 232 | pub fn one_time_burst(&self) -> u64 { |
no outgoing calls
no test coverage detected